|
19 | 19 | import sys |
20 | 20 | sys.path.append(os.path.abspath(BASE_DIR + "/..")) |
21 | 21 |
|
22 | | -DEBUG = False |
| 22 | +DEBUG = True |
23 | 23 | TEMPLATE_DEBUG = DEBUG |
24 | 24 |
|
25 | 25 | # Domain name of the IETF |
@@ -234,7 +234,7 @@ def skip_suspicious_operations(record): |
234 | 234 | # Valid values: |
235 | 235 | # 'production', 'test', 'development' |
236 | 236 | # Override this in settings_local.py if it's not true |
237 | | -SERVER_MODE = 'production' |
| 237 | +SERVER_MODE = 'development' |
238 | 238 |
|
239 | 239 | # The name of the method to use to invoke the test suite |
240 | 240 | TEST_RUNNER = 'ietf.utils.test_runner.IetfTestRunner' |
@@ -294,21 +294,13 @@ def skip_suspicious_operations(record): |
294 | 294 | CACHE_MIDDLEWARE_KEY_PREFIX = '' |
295 | 295 |
|
296 | 296 | # 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', |
311 | 302 | } |
| 303 | +} |
312 | 304 |
|
313 | 305 | IPR_EMAIL_TO = ['ietf-ipr@ietf.org', ] |
314 | 306 | DOC_APPROVAL_EMAIL_CC = ["RFC Editor <rfc-editor@rfc-editor.org>", ] |
@@ -416,5 +408,11 @@ def skip_suspicious_operations(record): |
416 | 408 | # absolutely vital that django fails to start in production mode unless a |
417 | 409 | # secret key has been provided elsewhere, not in this file which is |
418 | 410 | # 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