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

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 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-2.0.0.tar.gz (28.4 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-2.0.0-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django_autoapp-2.0.0.tar.gz
Algorithm Hash digest
SHA256 1d12de59b20ef747730c98da0d9c6998317feb6b25fdbf9878c1ea46e207d7b9
MD5 434f605d574b980bad4d38b46b8c6bd3
BLAKE2b-256 861f65eba89ba32b959e43e803cd322fe1921696c55c8393abe30635dba24a12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_autoapp-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 37.7 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-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 205b6bdc78be6b71d8d579be1141f245f513bddf98e6be1a40e2ebe52f20152a
MD5 27c566c2e5ae4d8aabcf4c633aa33365
BLAKE2b-256 1deaf6ecbf99eab296f6f8973de116e16854cf67c8e6d644835eac76cf7c473b

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