Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Use the existing and configured env indicator (#476)
sarayourfriendab26c741d660
diff --git a/api/catalog/settings.py b/api/catalog/settings.pyindex 6ead0abaf..6c726f9f8 100644--- a/api/catalog/settings.py+++ b/api/catalog/settings.py@@ -39,7 +39,7 @@ SECRET_KEY = config("DJANGO_SECRET_KEY") # required# 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 @@ if not DEBUG: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.templateindex 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"