Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Use the existing and configured env indicator (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend authored Jan 20, 2022
1 parent 6a65899 commit ab26c74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/catalog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -318,5 +318,5 @@
integrations=[DjangoIntegration()],
traces_sample_rate=SENTRY_SAMPLE_RATE,
send_default_pii=False,
environment=PYTHON_ENV,
environment=ENVIRONMENT,
)
1 change: 0 additions & 1 deletion api/env.template
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit ab26c74

Please sign in to comment.