Skip to main content

Auto-generate Django apps with full CRUD boilerplate — models, views, URLs, forms, admin, and templates.

Project description

Django AutoApp

PyPI version Python Django License: MIT

Auto-generate Django apps with full CRUD boilerplate — models, views, URLs, forms, admin, templates, and static files — in a single command.

Installation

pip install django-autoapp

Add to your INSTALLED_APPS:

INSTALLED_APPS = [
    # ...
    "django_autoapp",
]

Usage

python manage.py autoapp <APP_NAME> <MODEL_NAME>

Example

python manage.py autoapp blog Post

This generates a complete blog/ app with a Post model, including:

  • models.py — Model with name, created_at, updated_at fields
  • views.py — ListView, CreateView, DetailView, UpdateView, DeleteView
  • urls.py — URL patterns with proper namespacing
  • forms.py — ModelForm
  • admin.py — Admin registration with all fields displayed
  • apps.py — AppConfig
  • templates/ — List, form, detail, and confirm-delete HTML templates
  • management/commands/run_project.py — One-command project runner

Options

Flag Description
--dry-run Simulate execution without writing any files
--force Overwrite existing files and directories
--template-dir PATH Use a custom Jinja2 template directory

Requirements

  • Python ≥ 3.10
  • Django ≥ 4.2
  • Jinja2 ≥ 3.1

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_autoapp-1.0.2.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_autoapp-1.0.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file django_autoapp-1.0.2.tar.gz.

File metadata

  • Download URL: django_autoapp-1.0.2.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for django_autoapp-1.0.2.tar.gz
Algorithm Hash digest
SHA256 bb8cfb497fbac7a3a1ef46038fc24a512902c0d41c28757332b10d68caeb38fb
MD5 2dfe17ebc63cf9cca1ab053002869ce9
BLAKE2b-256 0fb41c586de1ba7d3dd911bc485e58afb471a11fe1f3c1cd1a703f754b7e66fb

See more details on using hashes here.

File details

Details for the file django_autoapp-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: django_autoapp-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for django_autoapp-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e1fcd683282f79f4126d4fe9e3aa5eb6021105b0ad90e3f4112ea9b9736a035c
MD5 e059396d34a4395855435a508eb493c5
BLAKE2b-256 3ea4babdea6ad114182d0e00eac5f9386948747700139ad31488b082faf4cc47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page