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-django
Zero 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.py
apps.py
models.py
tests.py
views.py
config/
settings/
base.py
development.py
production.py
asgi.py
urls.py
wsgi.py
static/
css/
templates/
tests/
test_health.py
.env.example
.gitignore
manage.py
pyproject.toml
requirements.txt
requirements-dev.txt
README.md

Quick Start Commands

Generate Project

terminal
npx setupkaro init my-project --template python-django

Next 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-ts

Replace 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