python__django_tutorials/.env.example
Frédéric G. MARAND 4b3ad6f4f0 chore: modernize backend infrastructure and developer workflow
- Implement Pydantic Settings for strict, type-safe configuration
- Centralize environment variables in project root .env
- Modernize project boilerplate (README, .gitignore, .editorconfig)
- Add automated secret key generation and secure CORS defaults
- Remove legacy absolute path hardcoding and string-based settings
2026-03-29 19:44:17 +02:00

11 lines
431 B
Bash

# --- Django Backend Settings ---
# Use 'make secret-key' to generate a secure value for this field
DJANGO_SECRET_KEY=django-insecure-dev-onboarding-key-change-me-locally
DJANGO_DEBUG=True
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
DJANGO_CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
DJANGO_DB_NAME=db.sqlite3
# --- Vite Frontend Settings ---
# Pointing to the Django API
VITE_API_URL=http://127.0.0.1:8000/api/