diff --git a/rdgen/settings.py b/rdgen/settings.py index 003ade4..cc0fdc8 100644 --- a/rdgen/settings.py +++ b/rdgen/settings.py @@ -35,7 +35,8 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media') # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = os.environ.get("DEBUG", "False").lower() == "true" +DEBUG_ENV = os.environ.get("DEBUG", "False") +DEBUG = DEBUG_ENV.lower() in ['true', '1', 't'] ALLOWED_HOSTS = ['*'] #CSRF_TRUSTED_ORIGINS = os.getenv('CSRF_TRUSTED_ORIGINS', '').split()