diff --git a/shiftregister/settings.py b/shiftregister/settings.py index 050b0dd..64d4475 100644 --- a/shiftregister/settings.py +++ b/shiftregister/settings.py @@ -28,10 +28,8 @@ SECRET_KEY = getenv( "SECRET_KEY", "django-insecure-pdgzgd_!w&&cfqc%r&!v_^6pgf!sza=2wim67()!(kaf7_6-5)" ) -ENVIRONMENT = getenv("ENVIRONMENT", "development") - # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = ENVIRONMENT == "development" +DEBUG = getenv("ENVIRONMENT", "development") == "development" ALLOWED_HOSTS = list(filter(lambda s: s != "", getenv("ALLOWED_HOSTS", "").split(","))) @@ -163,5 +161,4 @@ if getenv("SENTRY_DSN"): integrations=[CeleryIntegration(), DjangoIntegration()], auto_session_tracking=False, traces_sample_rate=0, - environment=ENVIRONMENT, )