Readme
======
Introduction
------------
Build status:
.. image:: https://github.com/WoLpH/django-admin-generator/actions/workflows/main.yml/badge.svg
:alt: django-admin-generator test status
:target: https://github.com/WoLpH/django-admin-generator/actions
Coverage:
.. image:: https://coveralls.io/repos/WoLpH/django-admin-generator/badge.svg?branch=master
:alt: Coverage Status
:target: https://coveralls.io/r/WoLpH/django-admin-generator?branch=master
The Django Admin Generator is a project which can automatically generate
(scaffold) a Django Admin for you. By doing this it will introspect your
models and automatically generate an Admin with properties like:
- ``list_display`` for all local fields
- ``list_filter`` for foreign keys with few items
- ``raw_id_fields`` for foreign keys with a lot of items
- ``search_fields`` for name and ``slug`` fields
- ``prepopulated_fields`` for ``slug`` fields
- ``date_hierarchy`` for ``created_at``, ``updated_at`` or ``joined_at`` fields
Links
-----
* Documentation
- http://django-admin-generator.readthedocs.org/en/latest/
* Source
- https://github.com/WoLpH/django-admin-generator
* Bug reports
- https://github.com/WoLpH/django-admin-generator/issues
* Package homepage
- https://pypi.python.org/pypi/django-admin-generator
* My blog
- http://w.wol.ph/
Install
-------
To install:
1. Run ``pip install django-admin-generator`` or execute ``python setup.py install`` in the source directory
2. Add ``django_admin_generator`` to your ``INSTALLED_APPS``
If you want to run the tests, run ``py.test`` (requires ``pytest``)
Usage
-----
To generate an admin for a given app:
./manage.py admin_generator APP_NAME >> APP_NAME/admin.py
To generate an admin for a given app with all models starting with user:
./manage.py admin_generator APP_NAME '^user' >> APP_NAME/admin.py
Raw data
{
"_id": null,
"home_page": "https://github.com/WoLpH/django-admin-generator/",
"name": "django-admin-generator",
"maintainer": "",
"docs_url": "https://pythonhosted.org/django-admin-generator/",
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Rick van Hattem",
"author_email": "Wolph@Wol.ph",
"download_url": "https://files.pythonhosted.org/packages/c3/67/67dbe30af93492dec31cff5448635f97c71702bf6641fff69b6d4840810d/django-admin-generator-2.6.0.tar.gz",
"platform": null,
"description": "Readme\n======\n\nIntroduction\n------------\n\nBuild status:\n\n.. image:: https://github.com/WoLpH/django-admin-generator/actions/workflows/main.yml/badge.svg\n :alt: django-admin-generator test status\n :target: https://github.com/WoLpH/django-admin-generator/actions\n\nCoverage:\n\n.. image:: https://coveralls.io/repos/WoLpH/django-admin-generator/badge.svg?branch=master\n :alt: Coverage Status\n :target: https://coveralls.io/r/WoLpH/django-admin-generator?branch=master\n\nThe Django Admin Generator is a project which can automatically generate\n(scaffold) a Django Admin for you. By doing this it will introspect your\nmodels and automatically generate an Admin with properties like:\n\n - ``list_display`` for all local fields\n - ``list_filter`` for foreign keys with few items\n - ``raw_id_fields`` for foreign keys with a lot of items\n - ``search_fields`` for name and ``slug`` fields\n - ``prepopulated_fields`` for ``slug`` fields\n - ``date_hierarchy`` for ``created_at``, ``updated_at`` or ``joined_at`` fields\n\nLinks\n-----\n\n* Documentation\n - http://django-admin-generator.readthedocs.org/en/latest/\n* Source\n - https://github.com/WoLpH/django-admin-generator\n* Bug reports \n - https://github.com/WoLpH/django-admin-generator/issues\n* Package homepage\n - https://pypi.python.org/pypi/django-admin-generator\n* My blog\n - http://w.wol.ph/\n\nInstall\n-------\n\nTo install:\n\n1. Run ``pip install django-admin-generator`` or execute ``python setup.py install`` in the source directory\n2. Add ``django_admin_generator`` to your ``INSTALLED_APPS``\n \nIf you want to run the tests, run ``py.test`` (requires ``pytest``)\n\nUsage\n-----\n\nTo generate an admin for a given app:\n\n ./manage.py admin_generator APP_NAME >> APP_NAME/admin.py\n\nTo generate an admin for a given app with all models starting with user:\n\n ./manage.py admin_generator APP_NAME '^user' >> APP_NAME/admin.py\n\n",
"bugtrack_url": null,
"license": "BSD",
"summary": "Django Admin Generator is a management command to automatically generate a Django `admin.py` file for given apps/models.",
"version": "2.6.0",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "733d1df59ecf3c9d4b108902f711a34b8cb819a3c2c8ecf48fddd0bedaf93b54",
"md5": "4a9206bce451d818cac12637ad694e34",
"sha256": "f1964c8d20707fee0a0bbb83eafee8d1afb0bdfead0c6e7bff9ec549f02b238f"
},
"downloads": -1,
"filename": "django_admin_generator-2.6.0-py2.py3-none-any.whl",
"has_sig": true,
"md5_digest": "4a9206bce451d818cac12637ad694e34",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 14261,
"upload_time": "2023-02-11T22:55:29",
"upload_time_iso_8601": "2023-02-11T22:55:29.677816Z",
"url": "https://files.pythonhosted.org/packages/73/3d/1df59ecf3c9d4b108902f711a34b8cb819a3c2c8ecf48fddd0bedaf93b54/django_admin_generator-2.6.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c36767dbe30af93492dec31cff5448635f97c71702bf6641fff69b6d4840810d",
"md5": "ac5137a1521b93e96a2e28ee266eae12",
"sha256": "73c6e5d2d92671795cdca2ef3d307ca2d374810ded35d1dceffa33f20e774799"
},
"downloads": -1,
"filename": "django-admin-generator-2.6.0.tar.gz",
"has_sig": true,
"md5_digest": "ac5137a1521b93e96a2e28ee266eae12",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 11590,
"upload_time": "2023-02-11T22:55:31",
"upload_time_iso_8601": "2023-02-11T22:55:31.734214Z",
"url": "https://files.pythonhosted.org/packages/c3/67/67dbe30af93492dec31cff5448635f97c71702bf6641fff69b6d4840810d/django-admin-generator-2.6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-11 22:55:31",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "WoLpH",
"github_project": "django-admin-generator",
"travis_ci": true,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "django-admin-generator"
}