Django Admin Generator
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_displayfor all local fieldslist_filterfor foreign keys with few itemsraw_id_fieldsfor foreign keys with a lot of itemssearch_fieldsfornameandslugfieldsprepopulated_fieldsforslugfieldsdate_hierarchyforcreated_at,updated_atorjoined_atfields
Links
- Documentation: https://django-admin-generator.readthedocs.io/en/latest/
- Source: https://github.com/WoLpH/django-admin-generator
- Bug reports: https://github.com/WoLpH/django-admin-generator/issues
- Package homepage: https://pypi.org/project/django-admin-generator/
- My blog: https://w.wol.ph/
Install
-
Install the package:
pip install django-admin-generator
-
Add
django_admin_generatorto yourINSTALLED_APPS.
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
To write the generated admin directly to each app's admin.py:
./manage.py admin_generator APP_NAME --write
Use all as the app name to generate admins for every local (i.e. not in
site-packages) app:
./manage.py admin_generator all
Live demo
A self-documenting blog demo whose admin.py is fully auto-generated:
uv run --extra demo python test_project/manage.py demo # or: tox -e demo
Then open http://127.0.0.1:8000/admin/ and log in with admin / admin. The
admin index explains what was generated and why. See
test_project/README.md
for a guided tour.
Development
uv sync --extra dev # create the environment
uv run pytest # run the tests
uv run ruff check . # lint
uv run tox # full matrix (tests, lint, types, docs)
Release files for django-admin-generator 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_admin_generator-3.0.0.tar.gz | 12.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_admin_generator-3.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.7 kB
Release files / django_admin_generator-3.0.0.tar.gz
| Download URL | django_admin_generator-3.0.0.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b8ac607f6623a4bcf9b3e618d108c7d5152e86fb3df55683b0ab29953ba73d2
|
|
BLAKE2b-256 checksum How to use checksums |
99dfbaaa52650de06818ca694ef0ad08d92edbcf2e1bbc8e77072123416cb73b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 19, 2026.
Transparency logRelease files / django_admin_generator-3.0.0-py3-none-any.whl
| Download URL | django_admin_generator-3.0.0-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c598341e2beebe3448c1686a4897e8ef1837013925986f7b15dfb9279156447f
|
|
BLAKE2b-256 checksum How to use checksums |
8602c0c0dd2134c5db4a8e456c8ecf372a051b1cb96404e583525227361cc3ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 19, 2026.
Transparency log