Scaffold production-ready Django projects in seconds โ MVP or REST API, CBV or FBV.
Project description
๐ Django Kickstart
Scaffold production-ready Django projects in seconds.
Skip the boilerplate. Start building.
โจ Features
- Two project types: MVP (traditional Django with templates) or API (Django REST Framework)
- View style choice: Function-Based Views (FBV) or Class-Based Views (CBV)
- Database options: SQLite (dev) or PostgreSQL (production)
- Docker support: Optional
--dockerflag generates a production-readyDockerfile,docker-compose.yml, andentrypoint.sh - Auto virtual environment: Creates a venv and installs dependencies automatically
- Production-ready settings: Security hardened, environment variables via
python-decouple - Admin panel: Enabled and configured out of the box
- URL routing: Fully wired with app URLs included
- Example model:
Itemmodel with admin registration, tests, and views - Beautiful starter templates: Modern CSS with responsive layout (MVP only)
- DRF browsable API: Auto-configured with pagination and permissions (API only)
๐ฆ Installation
pip install django-kickstartx
๐ Quick Start
Interactive mode (guided prompts)
django-kickstart create myproject
Flag mode (one-liner)
# MVP with function-based views + SQLite
django-kickstart create myproject --type mvp --views fbv --db sqlite
# REST API with class-based views + PostgreSQL
django-kickstart create myproject --type api --views cbv --db postgresql
# Any project with Docker support
django-kickstart create myproject --type api --views fbv --db postgresql --docker
After creating your project
A virtual environment is created automatically with all dependencies installed.
cd myproject
# Activate the virtual environment
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate
cp .env.example .env
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
Tip: Use
--no-venvto skip automatic virtual environment creation.
With Docker
If you used --docker, skip the venv entirely and use Compose:
cd myproject
cp .env.example .env
docker-compose up --build
Once the containers are running:
docker-compose exec web python manage.py createsuperuser
Note: For PostgreSQL projects, the
webcontainer waits for the database to pass its health check before running migrations automatically.
๐ง Options
| Flag | Choices | Default | Description |
|---|---|---|---|
--type |
mvp, api |
interactive | MVP (templates) or API (DRF) |
--views |
fbv, cbv |
interactive | Function or class-based views |
--db |
sqlite, postgresql |
interactive | Database backend |
--no-venv |
โ | false |
Skip automatic virtual environment creation |
--docker |
โ | false |
Add Docker configuration (Dockerfile, docker-compose.yml, .dockerignore, and entrypoint.sh for PostgreSQL) |
๐ Generated Structure
MVP Project
myproject/
โโโ venv/ # Auto-created virtual environment
โโโ manage.py
โโโ requirements.txt
โโโ .env.example
โโโ .gitignore
โโโ myproject/
โ โโโ settings.py # Security, DB, static/media config
โ โโโ urls.py # Admin + core app wired
โ โโโ wsgi.py
โ โโโ asgi.py
โโโ core/
โ โโโ admin.py # Item model registered
โ โโโ models.py # Example Item model
โ โโโ views.py # FBV or CBV
โ โโโ urls.py
โ โโโ forms.py # ModelForm
โ โโโ tests.py
โ โโโ templates/core/
โ โโโ base.html
โ โโโ home.html
โ โโโ about.html
โโโ static/css/style.css
API (DRF) Project
myproject/
โโโ venv/ # Auto-created virtual environment
โโโ manage.py
โโโ requirements.txt
โโโ .env.example
โโโ .gitignore
โโโ myproject/
โ โโโ settings.py # DRF + CORS config included
โ โโโ urls.py # Admin + /api/ router
โ โโโ wsgi.py
โ โโโ asgi.py
โโโ core/
โโโ admin.py
โโโ models.py
โโโ serializers.py # DRF ModelSerializer
โโโ views.py # @api_view or ModelViewSet
โโโ urls.py # DRF Router or explicit paths
โโโ tests.py
With --docker (additional files)
myproject/
โโโ Dockerfile # python:3.12-slim-bookworm, no-cache pip install
โโโ docker-compose.yml # web service (+ db service for PostgreSQL)
โโโ .dockerignore
โโโ entrypoint.sh # PostgreSQL only โ waits for DB, then migrates
๐ค What's Included?
Settings Highlights
SECRET_KEYloaded from.envDEBUGandALLOWED_HOSTSfrom environment- Pre-configured password validators
- Static & media file configuration
- Production security settings (commented, ready to uncomment)
- Login/logout redirect URLs
MVP Extras
- Django HTML templates with
{% block %}structure - Clean starter CSS with responsive grid
- ModelForm with widget customization
API Extras
- Django REST Framework with pagination
django-cors-headersconfigureddjango-filterincluded in requirements- DRF browsable API at
/api/
๐ License
MIT ยฉ 2026
๐ค Contributing
- Fork the repo
- Create a feature branch:
git checkout -b feature/my-feature - Commit:
git commit -m 'Add my feature' - Push:
git push origin feature/my-feature - Open a Pull Request
๐ Star this project
If Django Kickstart saved you time, give it a โญ on GitHub!
Project details
Release history Release notifications | RSS feed
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_kickstartx-1.1.3.tar.gz.
File metadata
- Download URL: django_kickstartx-1.1.3.tar.gz
- Upload date:
- Size: 23.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dff6f438293d1a1eeb87e3780f5a8758e9b0695e5b04d0e326a560f17bb15d04
|
|
| MD5 |
1d99735ca279d8b7637661fbf921ec07
|
|
| BLAKE2b-256 |
2b87f47a581a7033fe6e01e2569151c352e2590d53c62f692916bda6b26f6235
|
File details
Details for the file django_kickstartx-1.1.3-py3-none-any.whl.
File metadata
- Download URL: django_kickstartx-1.1.3-py3-none-any.whl
- Upload date:
- Size: 30.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78d646935713bc707006eca8b2be32936a5c3155254cf6c05973fe8b397b15b3
|
|
| MD5 |
f499b891becaba8acd5c3c7dc9a0a174
|
|
| BLAKE2b-256 |
ab58b4d674d8c4c85ec13eb649c5de126eb0e4fd8844130f54dcf8588f4aa1ad
|