Back to Templates
Python Django
Django Starter with DRF, PostgreSQL, pytest & Ruff
Django 5.2 with Django REST Framework, PostgreSQL, pytest, and Ruff
terminal
npx setupkaro init my-project --template python-djangoZero installNo telemetryMIT License
What's Included
- Django 5.2 LTS with a modular project structure
- Django REST Framework for REST API development
- django-filter for API filtering
- SQLite database for local development
- PostgreSQL database configuration for production
- Environment variable management with python-dotenv
- drf-spectacular for OpenAPI schema and Swagger UI
- WhiteNoise for static file serving
- Gunicorn (WSGI) and Uvicorn (ASGI) production servers
- pytest, pytest-django, pytest-cov, and factory-boy for testing
- Ruff for linting and code formatting
- Health-check endpoint and Django admin
- Development, base, and production settings modules
- Generated README with setup and deployment instructions
Generated Folder Structure
apps/core/migrations/admin.pyapps.pymodels.pytests.pyviews.pyconfig/settings/base.pydevelopment.pyproduction.pyasgi.pyurls.pywsgi.pystatic/css/templates/tests/test_health.py.env.example.gitignoremanage.pypyproject.tomlrequirements.txtrequirements-dev.txtREADME.md
Quick Start Commands
Generate Project
terminal
npx setupkaro init my-project --template python-djangoNext Steps
cd my-app
# Check README for commands
Frequently Asked Questions
- Which Django version does this template use?
- The template uses Django 5.2 LTS.
- Does it include Django REST Framework?
- Yes. Django REST Framework is configured for REST API development, along with django-filter and drf-spectacular.
- Which databases are supported?
- SQLite is configured for local development, while PostgreSQL is configured for production.
- Does it include API documentation?
- Yes. drf-spectacular provides an OpenAPI schema at `/api/schema/` and Swagger UI at `/api/docs/`.
- Does it include tests and code quality tools?
- Yes. It includes pytest, pytest-django, pytest-cov, factory-boy, and Ruff.
- Does it include authentication and business-specific APIs?
- Django's built-in authentication and admin are available. The template provides a health-check endpoint, but application-specific authentication APIs and business logic must be added after generation.
Generate Another Template
React + TypeScript
Vite + React + TS with Tailwind and React Router
terminal
npx setupkaro init my-app --template react-tsReplace my-app with your project name.
Ready to generate your Python Django project?
One command. Production-ready. Start building in seconds.
terminal
npx setupkaro init my-project --template python-django