Skip to main content

Django project generator CLI — production-ready Django projects in one command

Project description

djboost 🚀

PyPI version Python License: MIT

One command. Production-ready Django.

djboost generates a fully-configured Django project in seconds — DRF, JWT, Celery, Redis, WebSockets, Docker, Swagger, and more. All pre-wired and ready to go. No boilerplate. No config hunting.

pip install djboost
djboost create project myproject

That's it. Your project is ready.


What you get

Feature Details
REST API Django REST Framework + Simple JWT pre-configured
API Docs Swagger UI + ReDoc at /api/schema/swagger-ui/
Async Tasks Celery + Redis, including Celery Beat schedule
WebSockets Django Channels + Daphne ASGI server
Database PostgreSQL config ready (SQLite default for dev)
Environment python-decouple with fully pre-filled .env
Docker Dockerfile + docker-compose.yml with 4 services
Security CORS, CSRF, XSS headers, throttling all configured
Static Files Whitenoise for efficient static file serving
Code Quality pre-commit with black, flake8, isort
Testing pytest + pytest-django with coverage
CI/CD GitHub Actions and GitLab CI pipelines
Exception Handling Global DRF handler → {"success": false, "message": "..."}

Quick Start

1 — Create a virtual environment

python -m venv env

# Windows
env\Scripts\activate

# Mac / Linux
source env/bin/activate

2 — Install djboost

pip install djboost

3 — Create your project

Navigate to an empty folder and run:

djboost create project myproject

This single command will:

  1. Install Django and scaffold the project
  2. Configure settings.py with 50+ production settings
  3. Generate .env pre-filled with all required keys
  4. Create Dockerfile + docker-compose.yml (web, db, redis, celery)
  5. Set up pytest.ini, .pre-commit-config.yaml, .gitignore
  6. Install all 19 dependencies with version pinning
  7. Generate tasks.py with Celery sample task
  8. Freeze requirements.txt

Creating Apps

cd myproject
djboost create app users

This creates apps/users/ and auto-generates:

apps/users/
  views.py        ← APIView boilerplate (List + Detail)
  serializers.py  ← ModelSerializer template
  urls.py         ← URL patterns
  tests.py        ← Test boilerplate
  models.py
  admin.py
  apps.py         ← name auto-set to 'apps.users'

Also automatically:

  • Adds 'apps.users' to INSTALLED_APPS
  • Maps /api/users/ in urls.py

CI/CD Pipelines

Add or remove CI/CD any time — it's modular.

djboost add cicd github    # GitHub Actions
djboost add cicd gitlab    # GitLab CI

djboost remove cicd github
djboost remove cicd gitlab

Running Your Project

python manage.py migrate
python manage.py runserver
URL Description
http://127.0.0.1:8000/ Health check
http://127.0.0.1:8000/admin/ Django Admin
http://127.0.0.1:8000/api/schema/swagger-ui/ Swagger UI
http://127.0.0.1:8000/api/schema/redoc/ ReDoc

With Docker

docker-compose up --build

Spins up PostgreSQL, Redis, Celery worker, and Daphne ASGI server.


CLI Reference

djboost --version
djboost --help

djboost create project [NAME]      Create a new Django project (default: core)
djboost create app NAME            Create a new app inside apps/

djboost add cicd github|gitlab     Add CI/CD pipeline
djboost remove cicd github|gitlab  Remove CI/CD pipeline

Requirements

  • Python 3.10+
  • Virtual environment (djboost will warn you if not activated)

License

MIT — Munjur Alom

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

djboost-0.2.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

djboost-0.2.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file djboost-0.2.0.tar.gz.

File metadata

  • Download URL: djboost-0.2.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for djboost-0.2.0.tar.gz
Algorithm Hash digest
SHA256 89cf67bbe96f3c454eabc00d6f619f8a767327dc0ff2a1b82df1c124e748fc2c
MD5 7671245ff5d74b4c5cf30a7ca42853d4
BLAKE2b-256 9e4f083d967b8fbe2f3a0563e2b75e2f0a088a56f964a97c4d095d2dce75196c

See more details on using hashes here.

File details

Details for the file djboost-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: djboost-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for djboost-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9984179b130ab9a9c2e7501002540161884e84c8e4b8cf8be6396020354242d2
MD5 7021934e0bbb8c787cd9a2d7b90768ca
BLAKE2b-256 e40bd30ae22ac08637e851f8947eb373b977769e22b7174f8561bd4367c460c9

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