Skip to content
Projetos

jefftriplett/django-startproject

Ver no GitHub

Sobre

:checkered_flag: Django Start Project template with batteries

Desenvolvimento web e de aplicativos

Como estes números são medidos

O que você pode fazer

  • Docker Compose (I prefer Orbstack)
  • Justfile recipes
  • Postgres auto updates
  • pre-commit support via prek

Crescimento medido de estrelas

em 24 h
0
em 7 dias
-1
em 15 dias
-1
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Welcome to django-startproject 👋

CI

Django startproject template with batteries

[!NOTE] Modern Django Development Stack 🚀

This is a production-ready Django project template featuring the latest Python 3.14, Django 6.0, and modern tooling including uv for blazing-fast dependency management, Docker Compose for containerization, and Justfile for streamlined commands. Perfect for starting new projects or learning best practices with batteries included!

:triangular_flag_on_post: Core Features

  • Django 6.0
  • Python 3.14
  • Docker Compose (I prefer Orbstack)
  • Justfile recipes
  • Postgres auto updates
  • uv support
  • pre-commit support via prek

:triangular_flag_on_post: Django Features

  • django-click
  • django-prodserver[gunicorn]
  • environs[django]
  • psycopg[binary]
  • sentry-sdk
  • whitenoise

:warning: Error reporting (Sentry)

Sentry is off by default. Set these environment variables (e.g. in .env) to enable it:

  • SENTRY_DSN: your Sentry DSN. Sentry is only initialized when this is set. (default: unset)
  • SENTRY_ENVIRONMENT: the environment name reported to Sentry. (default: production)
  • SENTRY_TRACES_SAMPLE_RATE: fraction of transactions to trace, 0.0-1.0. (default: 0.1)
  • SENTRY_SEND_DEFAULT_PII: send personally identifiable data (user IPs, cookies, user IDs, emails) to Sentry. Off by default; enable only if your privacy policy allows it. (default: false)

:shirt: Linting/auto-formatting

  • pre-commit (using prek)
    • check-pre-commit-ci-config (validate the pre-commit.ci config)
    • Standard hooks (check-added-large-files, check-case-conflict, check-json, check-merge-conflict, check-symlinks, check-toml, check-yaml, end-of-file-fixer, trailing-whitespace)
    • uv-lock (keep uv.lock in sync with pyproject.toml)
    • ruff (linting and formatting)
    • dclint (Docker Compose linting)
    • pyupgrade (Python 3.14+)
    • django-upgrade (Django 5.0+)
    • djade (Django template formatting; target version auto-detected from pyproject.toml)
    • djhtml / djcss / djjs (Django template, CSS, and JS formatting)
    • rustywind (sort Tailwind CSS classes)
    • pretty-format-toml (format TOML files)

:green_heart: CI

  • django-test-plus
  • model-bakery
  • pytest
  • pytest-django

🏠 Homepage

:wrench: Install

$ uv run --with=django django-admin startproject \
    --extension=ini,py,toml,yaml,yml \
    --template=https://github.com/jefftriplett/django-startproject/archive/main.zip \
    example_project

$ cd example_project

$ just bootstrap

:rocket: Usage

# Bootstrap our project
$ just bootstrap

# Build our Docker Image
$ just build

# Run Migrations
$ just manage migrate

# Create a Superuser in Django
$ just manage createsuperuser

# Run Django on http://localhost:8000/
$ just up

# Run Django in background mode
$ just start

# Stop all running containers
$ just down

# Open a bash shell/console
$ just console

# Run Tests
$ just test

# Lint the project / run pre-commit by hand
$ just lint

# Lock dependencies with uv
$ just lock

just Commands

$ just --list
Available recipes:
    bootstrap *ARGS           # Initialize project with dependencies and environment
    build *ARGS               # Build Docker containers with optional args
    console                   # Open interactive bash console in utility container
    down *ARGS                # Stop and remove containers, networks
    lint *ARGS                # Run pre-commit hooks on all files
    lint-autoupdate *ARGS     # Update pre-commit hooks to latest versions
    lock *ARGS                # Lock dependencies with uv
    logs *ARGS                # Show logs from containers
    manage *ARGS              # Run Django management commands
    pg_dump file='db.dump'    # Dump database to file
    pg_restore file='db.dump' # Restore database dump from file
    restart *ARGS             # Restart containers
    run *ARGS                 # Run command in utility container
    start *ARGS="--detach"    # Start services in detached mode by default
    stop *ARGS                # Stop services (alias for down)
    tail                      # Show and follow logs
    test *ARGS                # Run pytest with arguments
    up *ARGS                  # Start containers
    upgrade                   # Upgrade dependencies and lock

Author

👤 Jeff Triplett

🌟 Community Projects

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

Explore projetos relacionados

Carregando…