Auto-generate Django apps with full CRUD boilerplate — models, views, URLs, forms, admin, and templates.
Project description
Django AutoApp
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
Quick Start — New Project from Scratch
Bootstrap a full Django project + virtual environment in one command:
mkdir my_site && cd my_site
django-autoapp-init myproject
This creates:
my_site/
├── venv/ ← isolated virtual environment
└── myproject/ ← Django project (manage.py, settings, etc.)
Then follow the printed instructions:
cd myproject
..\venv\Scripts\activate # Windows
source ../venv/bin/activate # macOS / Linux
python manage.py autoapp blog Post
python manage.py runserver
Adding to an Existing Project
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 withname,created_at,updated_atfieldsviews.py— ListView, CreateView, DetailView, UpdateView, DeleteViewurls.py— URL patterns with proper namespacingforms.py— ModelFormadmin.py— Admin registration with all fields displayedapps.py— AppConfigtemplates/— List, form, detail, and confirm-delete HTML templatesmanagement/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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_autoapp-1.0.3.tar.gz.
File metadata
- Download URL: django_autoapp-1.0.3.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35aa697742c8440b345e8a2fc41eb8aee276bb559dacf9cc9a49389e25fe0d7a
|
|
| MD5 |
6342bfc163aaec7ca138b698fa3c4ad4
|
|
| BLAKE2b-256 |
2c9dac17495ef69c1742c56f147aa26b6496ceb69d589d64a72c00808721030b
|
File details
Details for the file django_autoapp-1.0.3-py3-none-any.whl.
File metadata
- Download URL: django_autoapp-1.0.3-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74a55306c8bb197c45e8a330c9a0dbcdb52c5d3b7b39f62a2ddbc7cdc0a09170
|
|
| MD5 |
dce5fb183a53799be16e0d1838d87407
|
|
| BLAKE2b-256 |
ffd602cd38516e2eace615a090339c99f1dcc4b03b1687210e8245887f4d3adb
|