Skip to main content

Django Admin Generator

CI PyPI version Python versions Documentation Status

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

Install

  1. Install the package:

    pip install django-admin-generator
    
  2. Add django_admin_generator to your INSTALLED_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

This project uses uv and tox:

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)

Source distribution for django-admin-generator 3.0.0
File Size Uploaded
django_admin_generator-3.0.0.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-admin-generator 3.0.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.6.0

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.0

1 release file

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.5.0

2 release files

1.4.0

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page