Right now, we use the dev.py settings to run the staging environment and the local one.
In order to offer a little more flexibility, I moved the DEBUG and SENTRY_DSN configs to env and kept DEBUG, by default, on True (in order to maintain a seamless development experience).
We'll just need to add 2 env vars on our staging env:
DEBUG = False
SENTRY_DSN = ...
And one in our production environment:
Right now, we use the
dev.py
settings to run the staging environment and the local one. In order to offer a little more flexibility, I moved the DEBUG and SENTRY_DSN configs to env and kept DEBUG, by default, on True (in order to maintain a seamless development experience).We'll just need to add 2 env vars on our staging env:
DEBUG
=False
SENTRY_DSN
= ... And one in our production environment:SENTRY_DSN
= ...