Skip to content

Commit 654f73d

Browse files
committed
Updated settings file.
- Legacy-Id: 7364
1 parent 8b049ec commit 654f73d

1 file changed

Lines changed: 16 additions & 18 deletions

File tree

ietf/settings.py

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import sys
2020
sys.path.append(os.path.abspath(BASE_DIR + "/.."))
2121

22-
DEBUG = False
22+
DEBUG = True
2323
TEMPLATE_DEBUG = DEBUG
2424

2525
# Domain name of the IETF
@@ -234,7 +234,7 @@ def skip_suspicious_operations(record):
234234
# Valid values:
235235
# 'production', 'test', 'development'
236236
# Override this in settings_local.py if it's not true
237-
SERVER_MODE = 'production'
237+
SERVER_MODE = 'development'
238238

239239
# The name of the method to use to invoke the test suite
240240
TEST_RUNNER = 'ietf.utils.test_runner.IetfTestRunner'
@@ -294,21 +294,13 @@ def skip_suspicious_operations(record):
294294
CACHE_MIDDLEWARE_KEY_PREFIX = ''
295295

296296
# The default with no CACHES setting is 'django.core.cache.backends.locmem.LocMemCache'
297-
if SERVER_MODE == 'production':
298-
299-
CACHES = {
300-
'default': {
301-
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
302-
'LOCATION': '127.0.0.1:11211',
303-
}
304-
}
305-
else:
306-
# Default to no caching in development/test
307-
CACHES = {
308-
'default': {
309-
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
310-
}
297+
# This setting is possibly overridden further down, after the import of settings_local
298+
CACHES = {
299+
'default': {
300+
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
301+
'LOCATION': '127.0.0.1:11211',
311302
}
303+
}
312304

313305
IPR_EMAIL_TO = ['ietf-ipr@ietf.org', ]
314306
DOC_APPROVAL_EMAIL_CC = ["RFC Editor <rfc-editor@rfc-editor.org>", ]
@@ -416,5 +408,11 @@ def skip_suspicious_operations(record):
416408
# absolutely vital that django fails to start in production mode unless a
417409
# secret key has been provided elsewhere, not in this file which is
418410
# publicly available, for instance from the source repository.
419-
if SERVER_MODE != 'production' and SECRET_KEY not in locals():
420-
SECRET_KEY = 'PDwXboUq!=hPjnrtG2=ge#N$Dwy+wn@uivrugwpic8mxyPfHka'
411+
if SERVER_MODE != 'production':
412+
CACHES = {
413+
'default': {
414+
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
415+
}
416+
}
417+
if 'SECRET_KEY' not in locals():
418+
SECRET_KEY = 'PDwXboUq!=hPjnrtG2=ge#N$Dwy+wn@uivrugwpic8mxyPfHka'

0 commit comments

Comments
 (0)