Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions ietf/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1363,8 +1363,13 @@ def skip_unreadable_post(record):
TEMPLATES[0]['OPTIONS']['context_processors'] += DEV_TEMPLATE_CONTEXT_PROCESSORS

if "CACHES" not in locals():
if SERVER_MODE == "production":
raise RuntimeError("Must set CACHES in settings_local for production mode")
# Would like to refuse to start when in prod mode, but this currently blocks
# the collectstatics call in the release GHA. We should probably arrange for that
# to have its own caches config, but in the meantime just let this fall back to
# the dev cache configuration.
#
# if SERVER_MODE == "production":
# raise RuntimeError("Must set CACHES in settings_local for production mode")
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.dummy.DummyCache",
Expand Down
Loading