From 479655316bbf1b9faac9f79567484090a35961f5 Mon Sep 17 00:00:00 2001 From: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com> Date: Thu, 20 Jan 2022 07:10:00 -0500 Subject: [PATCH] Use the existing and configured env indicator --- api/catalog/settings.py | 4 ++-- api/env.template | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/api/catalog/settings.py b/api/catalog/settings.py index 6ead0abaf..6c726f9f8 100644 --- a/api/catalog/settings.py +++ b/api/catalog/settings.py @@ -39,7 +39,7 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = config("DJANGO_DEBUG_ENABLED", default=False, cast=bool) -PYTHON_ENV = config("PYTHON_ENV", default="production") +ENVIRONMENT = config("ENVIRONMENT", default="local") ALLOWED_HOSTS = [ "api-dev.openverse.engineering", @@ -318,5 +318,5 @@ integrations=[DjangoIntegration()], traces_sample_rate=SENTRY_SAMPLE_RATE, send_default_pii=False, - environment=PYTHON_ENV, + environment=ENVIRONMENT, ) diff --git a/api/env.template b/api/env.template index 21450abef..60ab0cbc1 100644 --- a/api/env.template +++ b/api/env.template @@ -1,5 +1,4 @@ PYTHONUNBUFFERED="0" -PYTHON_ENV="development" DJANGO_SETTINGS_MODULE="catalog.settings" DJANGO_SECRET_KEY="ny#b__$$f6ry4wy8oxre97&-68u_0lk3gw(z=d40_dxey3zw0v1"