Skip to content

Commit

Permalink
Resetting Django settings to production.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianwebb committed May 26, 2024
1 parent 5755794 commit fa4970b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compose/production/django/api/start
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o errexit
set -o pipefail
set -o nounset

export DJANGO_SETTINGS_MODULE=config.settings.local.api
export DJANGO_SETTINGS_MODULE=config.settings.production.api

exec /usr/local/bin/gunicorn config.wsgi \
--bind="0.0.0.0:5000" \
Expand Down
2 changes: 1 addition & 1 deletion compose/production/django/ui/start
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o errexit
set -o pipefail
set -o nounset

export DJANGO_SETTINGS_MODULE=config.settings.local.ui
export DJANGO_SETTINGS_MODULE=config.settings.production.ui

exec /usr/local/bin/gunicorn config.wsgi \
--bind="0.0.0.0:5000" \
Expand Down
2 changes: 1 addition & 1 deletion config/settings/production/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"CLIENT_CLASS": "django_redis.client.DefaultClient",
# Mimicing memcache behavior.
# https://github.com/jazzband/django-redis#memcached-exceptions-behavior
"IGNORE_EXCEPTIONS": False,
"IGNORE_EXCEPTIONS": True,
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion config/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# if running multiple sites in the same mod_wsgi process. To fix this, use
# mod_wsgi daemon mode with each site in its own daemon process, or use
# os.environ["DJANGO_SETTINGS_MODULE"] = "config.settings.production"
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.production")

# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
Expand Down

0 comments on commit fa4970b

Please sign in to comment.