- 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
11 lines
431 B
Bash
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/
|