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-1.0.3.tar.gz (16.7 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.3-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

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

Hashes for django_autoapp-1.0.3.tar.gz
Algorithm Hash digest
SHA256 35aa697742c8440b345e8a2fc41eb8aee276bb559dacf9cc9a49389e25fe0d7a
MD5 6342bfc163aaec7ca138b698fa3c4ad4
BLAKE2b-256 2c9dac17495ef69c1742c56f147aa26b6496ceb69d589d64a72c00808721030b

See more details on using hashes here.

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

Hashes for django_autoapp-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 74a55306c8bb197c45e8a330c9a0dbcdb52c5d3b7b39f62a2ddbc7cdc0a09170
MD5 dce5fb183a53799be16e0d1838d87407
BLAKE2b-256 ffd602cd38516e2eace615a090339c99f1dcc4b03b1687210e8245887f4d3adb

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