mirror of
https://github.com/thecyberlearn/modern-django-starter.git
synced 2026-08-18 08:52:55 +00:00
Temporary debugging changes for 500 errors and HTTPS issues
- Enable DEBUG=True to see detailed error messages on failing pages - Disable SECURE_SSL_REDIRECT to allow HTTP access while troubleshooting - Add both HTTP and HTTPS to CSRF_TRUSTED_ORIGINS This will help identify why other pages show 500 errors. Once issues are fixed, we'll re-enable production settings.
This commit is contained in:
parent
1046a3b05c
commit
468710b900
@ -4,13 +4,13 @@ services:
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- DEBUG=False
|
||||
- DEBUG=True
|
||||
- ALLOWED_HOSTS=dt.netcoptech.com,localhost,127.0.0.1
|
||||
- DATABASE_URL=${DATABASE_URL:-postgresql://django_user:django_password@db:5432/django_db}
|
||||
- SECRET_KEY=${SECRET_KEY:-django-insecure-change-this-key}
|
||||
- DJANGO_SETTINGS_MODULE=django_project.settings.production
|
||||
- CSRF_TRUSTED_ORIGINS=https://dt.netcoptech.com
|
||||
- SECURE_SSL_REDIRECT=True
|
||||
- CSRF_TRUSTED_ORIGINS=https://dt.netcoptech.com,http://dt.netcoptech.com
|
||||
- SECURE_SSL_REDIRECT=False
|
||||
- GOOGLE_OAUTH2_CLIENT_ID=${GOOGLE_OAUTH2_CLIENT_ID:-demo-google-client-id}
|
||||
- GOOGLE_OAUTH2_CLIENT_SECRET=${GOOGLE_OAUTH2_CLIENT_SECRET:-demo-google-client-secret}
|
||||
depends_on:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user