Skip to content

Commit

Permalink
TMP: hardcode devmode false in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMind committed Oct 18, 2024
1 parent 8149f14 commit 436ca0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 6 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
from olympia.lib.settings_base import * # noqa


# "production" is a named docker stage corresponding to the production image.
# when we build the production image, the stage to use is determined
# via the "DOCKER_TARGET" variable which is also passed into the image.
# So if the value is anything other than "production" we are in development mode.
DEV_MODE = DOCKER_TARGET != 'production'

WSGI_APPLICATION = 'olympia.wsgi.application'

INTERNAL_ROUTES_ALLOWED = True
Expand Down
6 changes: 1 addition & 5 deletions src/olympia/lib/settings_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ def path(*folders):
# we want to raise an error.
DOCKER_TARGET = env('DOCKER_TARGET')

# "production" is a named docker stage corresponding to the production image.
# when we build the production image, the stage to use is determined
# via the "DOCKER_TARGET" variable which is also passed into the image.
# So if the value is anything other than "production" we are in development mode.
DEV_MODE = DOCKER_TARGET != 'production'
DEV_MODE = False

# Used to determine if django should serve static files.
# For local deployments we want nginx to proxy static file requests to the
Expand Down

0 comments on commit 436ca0e

Please sign in to comment.