Set debug via env
This commit is contained in:
parent
cd0dba93fb
commit
929d61e12c
2 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ services:
|
|||
POSTGRES_PASSWORD: development
|
||||
POSTGRES_USER: pflaenzli
|
||||
POSTGRES_DB: pflaenzli
|
||||
DJANGO_DEBUG: true
|
||||
|
||||
db:
|
||||
image: postgres:15
|
||||
|
|
|
@ -30,7 +30,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||
SECRET_KEY = "django-insecure-q=ps#iypevr!3zfpwtfp3lw#4r3%oyj*(2=*iq^8f4_zbodi^("
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
DEBUG = os.getenv('DJANGO_DEBUG') == 'true'
|
||||
|
||||
ALLOWED_HOSTS = os.getenv('DJANGO_ALLOWED_HOSTS', '').split(',')
|
||||
CSRF_TRUSTED_ORIGINS = os.getenv('DJANGO_CSRF_TRUSTED_ORIGINS', '').split(',')
|
||||
|
|
Loading…
Reference in a new issue