mirror of
https://github.com/thecyberlearn/modern-django-starter.git
synced 2026-08-18 07:52:54 +00:00
✨ Features: - Complete Django project with authentication - Email/password and social login (Google, Facebook) - Role-based access control (admin, staff, user) - Docker and Docker Compose setup - Production-ready configuration - Static file handling with WhiteNoise - PostgreSQL database integration - Comprehensive documentation - GitHub CI/CD workflows - Dokploy deployment configuration 🚀 Ready for deployment on Dokploy, Heroku, Railway, and other platforms
34 lines
944 B
Plaintext
34 lines
944 B
Plaintext
# Django Configuration
|
|
SECRET_KEY=your-secret-key-here-make-it-long-and-random
|
|
DEBUG=True
|
|
ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0
|
|
|
|
# Database Configuration
|
|
DB_NAME=django_db
|
|
DB_USER=django_user
|
|
DB_PASSWORD=django_password
|
|
DB_HOST=db
|
|
DB_PORT=5432
|
|
|
|
# Email Configuration (for production)
|
|
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
|
|
EMAIL_HOST=smtp.gmail.com
|
|
EMAIL_PORT=587
|
|
EMAIL_USE_TLS=True
|
|
EMAIL_HOST_USER=your-email@gmail.com
|
|
EMAIL_HOST_PASSWORD=your-app-password
|
|
DEFAULT_FROM_EMAIL=noreply@your-domain.com
|
|
|
|
# Social Authentication - Google
|
|
GOOGLE_OAUTH2_CLIENT_ID=your-google-client-id
|
|
GOOGLE_OAUTH2_CLIENT_SECRET=your-google-client-secret
|
|
|
|
# Social Authentication - Facebook
|
|
FACEBOOK_APP_ID=your-facebook-app-id
|
|
FACEBOOK_APP_SECRET=your-facebook-app-secret
|
|
|
|
# Production SSL Settings (set to True in production)
|
|
SECURE_SSL_REDIRECT=False
|
|
|
|
# Sentry (optional - for error tracking in production)
|
|
SENTRY_DSN=your-sentry-dsn-here |