We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
restore django-debug-toolbar
We disabled django-debug-toolbar before we upgraded to django 1.4. Now that we're on it we should be able to restore it in `settings_local.py`.

restore django-debug-toolbar
We disabled django-debug-toolbar before we upgraded to django 1.4. Now that we're on it we should be able to restore it in `settings_local.py`.


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `puppet/files/vagrant/settings_local.py`
Content:
```
1 from settings import *
2 import logging
3 
4 INTERNAL_IPS = ('127.0.0.1', '192.168.10.1',)
5 
6 DEBUG = True
7 DEV = True
8 TEMPLATE_DEBUG = DEBUG
9 SERVE_MEDIA = DEBUG
10 
11 SESSION_COOKIE_SECURE = True
12 
13 DEMO_UPLOADS_ROOT = '/home/vagrant/uploads/demos'
14 DEMO_UPLOADS_URL = '/media/uploads/demos/'
15 
16 PROD_DETAILS_DIR = '/home/vagrant/product_details_json'
17 MDC_PAGES_DIR    = '/home/vagrant/mdc_pages'
18 
19 GOOGLE_MAPS_API_KEY = "ABQIAAAANRj9BHQi5ireVluCwVy0yRSrufPN8BjQWjkoRva24PCQEXS2OhSXu2BEgUH5PmGOmW71r2-tEuOVuQ"
20 
21 RECAPTCHA_USE_SSL = True
22 RECAPTCHA_PUBLIC_KEY = '6LdX8cISAAAAAA9HRXmzrcRSFsUoIK9u0nWpvGS_'
23 RECAPTCHA_PRIVATE_KEY = '6LdX8cISAAAAACkC1kqYmpeSf-1geTmLzrLnq0t6'
24 
25 BITLY_USERNAME = 'lmorchard'
26 BITLY_API_KEY = "R_2653e6351e31d02988b3da31dac6e2c0"
27 
28 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
29 #EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
30 #EMAIL_FILE_PATH = '/home/vagrant/logs/kuma-email.log'
31 
32 # Uncomment to enable a real celery queue
33 CELERY_ALWAYS_EAGER = False
34 
35 INSTALLED_APPS = INSTALLED_APPS + (
36     "django_extensions",
37     # TODO: re-enable after django 1.4
38     # "debug_toolbar",
39     "devserver",
40 )
41 
42 MIDDLEWARE_CLASSES = (
43     # TODO: re-enable after django 1.4
44     # "debug_toolbar.middleware.DebugToolbarMiddleware",
45 ) + MIDDLEWARE_CLASSES
46 
47 DEBUG_TOOLBAR_CONFIG = {
48     "INTERCEPT_REDIRECTS": False,
49 }
50 
51 DEBUG_TOOLBAR_PANELS = (
52     'debug_toolbar.panels.version.VersionDebugPanel',
53     'debug_toolbar.panels.timer.TimerDebugPanel',
54     'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
55     'debug_toolbar.panels.headers.HeaderDebugPanel',
56     'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
57     'debug_toolbar.panels.template.TemplateDebugPanel',
58     #'cache_panel.CachePanel',
59     'debug_toolbar.panels.sql.SQLDebugPanel',
60     'debug_toolbar.panels.signals.SignalDebugPanel',
61     'debug_toolbar.panels.logger.LoggingPanel',
62 )
63 
64 DEVSERVER_MODULES = (
65     # sql modules interfere with saving some KumaScript templates
66     #'devserver.modules.sql.SQLRealTimeModule',
67     #'devserver.modules.sql.SQLSummaryModule',
68     'devserver.modules.profile.ProfileSummaryModule',
69 
70     # Modules not enabled by default
71     #'devserver.modules.ajax.AjaxDumpModule',
72     #'devserver.modules.profile.MemoryUseModule',
73     #'devserver.modules.cache.CacheSummaryModule',
74     #'devserver.modules.profile.LineProfilerModule',
75 )
76 
77 # The default database should point to the master.
78 DATABASES = {
79     'default': {
80         'NAME': 'kuma',
81         'ENGINE': 'django.db.backends.mysql',
82         'HOST': 'localhost',
83         'USER': 'kuma',
84         'PASSWORD': 'kuma',
85         'OPTIONS': {'init_command': 'SET storage_engine=InnoDB'},
86     },
87 }
88 
89 MIGRATION_DATABASES = {
90     'wikidb': {
91         'NAME': 'wikidb',
92         'ENGINE': 'django.db.backends.mysql',
93         'HOST': 'localhost',
94         'USER': 'wikiuser',
95         'PASSWORD': '2yeOr7ByBUMBiB4z',
96     },
97 }
98 
99 CACHES = {
100     'default': {
101         # HACK: We currently have 'default' memcache disabled in production.
102         # This reflects that in local dev.
103         'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
104         #'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
105         #'LOCATION': [
106         #    '127.0.0.1:11211',
107         #],
108         'TIMEOUT': 3600,
109         'KEY_PREFIX': 'kuma',
110     },
111     'secondary': {
112         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
113         'LOCATION': [
114             '127.0.0.1:11211',
115         ],
116         'TIMEOUT': 3600,
117         'KEY_PREFIX': 'kuma',
118     }
119 }
120 
121 # TODO: Switch this to 'default' when main cache issues are resolved
122 SECONDARY_CACHE_ALIAS = 'secondary'
123 
124 # Use IP:PORT pairs separated by semicolons.
125 CACHE_BACKEND = 'memcached://localhost:11211?timeout=60'
126 CONSTANCE_DATABASE_CACHE_BACKEND = CACHE_BACKEND
127 
128 # This is used to hash some things in Django.
129 SECRET_KEY = 'jenny8675309'
130 
131 DEBUG_PROPAGATE_EXCEPTIONS = DEBUG
132 
133 LOG_LEVEL = logging.DEBUG
134 
135 SITE_URL = 'https://developer-local.allizom.org'
136 PROTOCOL = 'https://'
137 DOMAIN = 'developer-local.allizom.org'
138 
139 # See: https://github.com/mozilla/django-browserid/issues/8 (TODO)
140 BROWSERID_DISABLE_CERT_CHECK = True
141 BROWSERID_CACERT_FILE = None
142 
143 LOGIN_REDIRECT_URL = '/'
144 LOGIN_REDIRECT_URL_FAILURE = '/'
145 
146 KUMASCRIPT_URL_TEMPLATE = 'http://localhost:9080/docs/{path}'
147 
148 ATTACHMENT_HOST = 'mdn-local.mozillademos.org'
149 
150 ES_DISABLED = False
151 ES_URLS = ['http://127.0.0.1:9200']
152 ES_INDEXES = {'default': 'main_index'}
153 ES_INDEX_PREFIX = 'mdn'
154 ES_LIVE_INDEX = True
155 ES_INDEXING_TIMEOUT = 30
156 
157 # See https://mana.mozilla.org/wiki/display/websites/Developer+Cluster#DeveloperCluster-Sentry
158 SENTRY_DSN = ''
159 
160 if SENTRY_DSN:
161     INSTALLED_APPS = INSTALLED_APPS + (
162         'raven.contrib.django.raven_compat',
163     )
164
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/puppet/files/vagrant/settings_local.py b/puppet/files/vagrant/settings_local.py
--- a/puppet/files/vagrant/settings_local.py
+++ b/puppet/files/vagrant/settings_local.py
@@ -34,31 +34,30 @@
 
 INSTALLED_APPS = INSTALLED_APPS + (
     "django_extensions",
-    # TODO: re-enable after django 1.4
-    # "debug_toolbar",
+    "debug_toolbar",
     "devserver",
 )
 
-MIDDLEWARE_CLASSES = (
-    # TODO: re-enable after django 1.4
-    # "debug_toolbar.middleware.DebugToolbarMiddleware",
-) + MIDDLEWARE_CLASSES
+JINGO_EXCLUDE_APPS = JINGO_EXCLUDE_APPS + (
+    'debug_toolbar',
+)
 
 DEBUG_TOOLBAR_CONFIG = {
     "INTERCEPT_REDIRECTS": False,
 }
 
 DEBUG_TOOLBAR_PANELS = (
-    'debug_toolbar.panels.version.VersionDebugPanel',
-    'debug_toolbar.panels.timer.TimerDebugPanel',
-    'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
-    'debug_toolbar.panels.headers.HeaderDebugPanel',
-    'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
-    'debug_toolbar.panels.template.TemplateDebugPanel',
-    #'cache_panel.CachePanel',
-    'debug_toolbar.panels.sql.SQLDebugPanel',
-    'debug_toolbar.panels.signals.SignalDebugPanel',
-    'debug_toolbar.panels.logger.LoggingPanel',
+    'debug_toolbar.panels.versions.VersionsPanel',
+    'debug_toolbar.panels.timer.TimerPanel',
+    'debug_toolbar.panels.settings.SettingsPanel',
+    'debug_toolbar.panels.headers.HeadersPanel',
+    'debug_toolbar.panels.request.RequestPanel',
+    'debug_toolbar.panels.templates.TemplatesPanel',
+    'debug_toolbar.panels.cache.CachePanel',
+    'debug_toolbar.panels.sql.SQLPanel',
+    'debug_toolbar.panels.signals.SignalsPanel',
+    'debug_toolbar.panels.logging.LoggingPanel',
+    'debug_toolbar.panels.redirects.RedirectsPanel',
 )
 
 DEVSERVER_MODULES = (

{"golden_diff": "diff --git a/puppet/files/vagrant/settings_local.py b/puppet/files/vagrant/settings_local.py\n--- a/puppet/files/vagrant/settings_local.py\n+++ b/puppet/files/vagrant/settings_local.py\n@@ -34,31 +34,30 @@\n \n INSTALLED_APPS = INSTALLED_APPS + (\n     \"django_extensions\",\n-    # TODO: re-enable after django 1.4\n-    # \"debug_toolbar\",\n+    \"debug_toolbar\",\n     \"devserver\",\n )\n \n-MIDDLEWARE_CLASSES = (\n-    # TODO: re-enable after django 1.4\n-    # \"debug_toolbar.middleware.DebugToolbarMiddleware\",\n-) + MIDDLEWARE_CLASSES\n+JINGO_EXCLUDE_APPS = JINGO_EXCLUDE_APPS + (\n+    'debug_toolbar',\n+)\n \n DEBUG_TOOLBAR_CONFIG = {\n     \"INTERCEPT_REDIRECTS\": False,\n }\n \n DEBUG_TOOLBAR_PANELS = (\n-    'debug_toolbar.panels.version.VersionDebugPanel',\n-    'debug_toolbar.panels.timer.TimerDebugPanel',\n-    'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',\n-    'debug_toolbar.panels.headers.HeaderDebugPanel',\n-    'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',\n-    'debug_toolbar.panels.template.TemplateDebugPanel',\n-    #'cache_panel.CachePanel',\n-    'debug_toolbar.panels.sql.SQLDebugPanel',\n-    'debug_toolbar.panels.signals.SignalDebugPanel',\n-    'debug_toolbar.panels.logger.LoggingPanel',\n+    'debug_toolbar.panels.versions.VersionsPanel',\n+    'debug_toolbar.panels.timer.TimerPanel',\n+    'debug_toolbar.panels.settings.SettingsPanel',\n+    'debug_toolbar.panels.headers.HeadersPanel',\n+    'debug_toolbar.panels.request.RequestPanel',\n+    'debug_toolbar.panels.templates.TemplatesPanel',\n+    'debug_toolbar.panels.cache.CachePanel',\n+    'debug_toolbar.panels.sql.SQLPanel',\n+    'debug_toolbar.panels.signals.SignalsPanel',\n+    'debug_toolbar.panels.logging.LoggingPanel',\n+    'debug_toolbar.panels.redirects.RedirectsPanel',\n )\n \n DEVSERVER_MODULES = (\n", "issue": "restore django-debug-toolbar\nWe disabled django-debug-toolbar before we upgraded to django 1.4. Now that we're on it we should be able to restore it in `settings_local.py`.\n\nrestore django-debug-toolbar\nWe disabled django-debug-toolbar before we upgraded to django 1.4. Now that we're on it we should be able to restore it in `settings_local.py`.\n\n", "before_files": [{"content": "from settings import *\nimport logging\n\nINTERNAL_IPS = ('127.0.0.1', '192.168.10.1',)\n\nDEBUG = True\nDEV = True\nTEMPLATE_DEBUG = DEBUG\nSERVE_MEDIA = DEBUG\n\nSESSION_COOKIE_SECURE = True\n\nDEMO_UPLOADS_ROOT = '/home/vagrant/uploads/demos'\nDEMO_UPLOADS_URL = '/media/uploads/demos/'\n\nPROD_DETAILS_DIR = '/home/vagrant/product_details_json'\nMDC_PAGES_DIR    = '/home/vagrant/mdc_pages'\n\nGOOGLE_MAPS_API_KEY = \"ABQIAAAANRj9BHQi5ireVluCwVy0yRSrufPN8BjQWjkoRva24PCQEXS2OhSXu2BEgUH5PmGOmW71r2-tEuOVuQ\"\n\nRECAPTCHA_USE_SSL = True\nRECAPTCHA_PUBLIC_KEY = '6LdX8cISAAAAAA9HRXmzrcRSFsUoIK9u0nWpvGS_'\nRECAPTCHA_PRIVATE_KEY = '6LdX8cISAAAAACkC1kqYmpeSf-1geTmLzrLnq0t6'\n\nBITLY_USERNAME = 'lmorchard'\nBITLY_API_KEY = \"R_2653e6351e31d02988b3da31dac6e2c0\"\n\nEMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'\n#EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'\n#EMAIL_FILE_PATH = '/home/vagrant/logs/kuma-email.log'\n\n# Uncomment to enable a real celery queue\nCELERY_ALWAYS_EAGER = False\n\nINSTALLED_APPS = INSTALLED_APPS + (\n    \"django_extensions\",\n    # TODO: re-enable after django 1.4\n    # \"debug_toolbar\",\n    \"devserver\",\n)\n\nMIDDLEWARE_CLASSES = (\n    # TODO: re-enable after django 1.4\n    # \"debug_toolbar.middleware.DebugToolbarMiddleware\",\n) + MIDDLEWARE_CLASSES\n\nDEBUG_TOOLBAR_CONFIG = {\n    \"INTERCEPT_REDIRECTS\": False,\n}\n\nDEBUG_TOOLBAR_PANELS = (\n    'debug_toolbar.panels.version.VersionDebugPanel',\n    'debug_toolbar.panels.timer.TimerDebugPanel',\n    'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',\n    'debug_toolbar.panels.headers.HeaderDebugPanel',\n    'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',\n    'debug_toolbar.panels.template.TemplateDebugPanel',\n    #'cache_panel.CachePanel',\n    'debug_toolbar.panels.sql.SQLDebugPanel',\n    'debug_toolbar.panels.signals.SignalDebugPanel',\n    'debug_toolbar.panels.logger.LoggingPanel',\n)\n\nDEVSERVER_MODULES = (\n    # sql modules interfere with saving some KumaScript templates\n    #'devserver.modules.sql.SQLRealTimeModule',\n    #'devserver.modules.sql.SQLSummaryModule',\n    'devserver.modules.profile.ProfileSummaryModule',\n\n    # Modules not enabled by default\n    #'devserver.modules.ajax.AjaxDumpModule',\n    #'devserver.modules.profile.MemoryUseModule',\n    #'devserver.modules.cache.CacheSummaryModule',\n    #'devserver.modules.profile.LineProfilerModule',\n)\n\n# The default database should point to the master.\nDATABASES = {\n    'default': {\n        'NAME': 'kuma',\n        'ENGINE': 'django.db.backends.mysql',\n        'HOST': 'localhost',\n        'USER': 'kuma',\n        'PASSWORD': 'kuma',\n        'OPTIONS': {'init_command': 'SET storage_engine=InnoDB'},\n    },\n}\n\nMIGRATION_DATABASES = {\n    'wikidb': {\n        'NAME': 'wikidb',\n        'ENGINE': 'django.db.backends.mysql',\n        'HOST': 'localhost',\n        'USER': 'wikiuser',\n        'PASSWORD': '2yeOr7ByBUMBiB4z',\n    },\n}\n\nCACHES = {\n    'default': {\n        # HACK: We currently have 'default' memcache disabled in production.\n        # This reflects that in local dev.\n        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',\n        #'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',\n        #'LOCATION': [\n        #    '127.0.0.1:11211',\n        #],\n        'TIMEOUT': 3600,\n        'KEY_PREFIX': 'kuma',\n    },\n    'secondary': {\n        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',\n        'LOCATION': [\n            '127.0.0.1:11211',\n        ],\n        'TIMEOUT': 3600,\n        'KEY_PREFIX': 'kuma',\n    }\n}\n\n# TODO: Switch this to 'default' when main cache issues are resolved\nSECONDARY_CACHE_ALIAS = 'secondary'\n\n# Use IP:PORT pairs separated by semicolons.\nCACHE_BACKEND = 'memcached://localhost:11211?timeout=60'\nCONSTANCE_DATABASE_CACHE_BACKEND = CACHE_BACKEND\n\n# This is used to hash some things in Django.\nSECRET_KEY = 'jenny8675309'\n\nDEBUG_PROPAGATE_EXCEPTIONS = DEBUG\n\nLOG_LEVEL = logging.DEBUG\n\nSITE_URL = 'https://developer-local.allizom.org'\nPROTOCOL = 'https://'\nDOMAIN = 'developer-local.allizom.org'\n\n# See: https://github.com/mozilla/django-browserid/issues/8 (TODO)\nBROWSERID_DISABLE_CERT_CHECK = True\nBROWSERID_CACERT_FILE = None\n\nLOGIN_REDIRECT_URL = '/'\nLOGIN_REDIRECT_URL_FAILURE = '/'\n\nKUMASCRIPT_URL_TEMPLATE = 'http://localhost:9080/docs/{path}'\n\nATTACHMENT_HOST = 'mdn-local.mozillademos.org'\n\nES_DISABLED = False\nES_URLS = ['http://127.0.0.1:9200']\nES_INDEXES = {'default': 'main_index'}\nES_INDEX_PREFIX = 'mdn'\nES_LIVE_INDEX = True\nES_INDEXING_TIMEOUT = 30\n\n# See https://mana.mozilla.org/wiki/display/websites/Developer+Cluster#DeveloperCluster-Sentry\nSENTRY_DSN = ''\n\nif SENTRY_DSN:\n    INSTALLED_APPS = INSTALLED_APPS + (\n        'raven.contrib.django.raven_compat',\n    )\n", "path": "puppet/files/vagrant/settings_local.py"}], "after_files": [{"content": "from settings import *\nimport logging\n\nINTERNAL_IPS = ('127.0.0.1', '192.168.10.1',)\n\nDEBUG = True\nDEV = True\nTEMPLATE_DEBUG = DEBUG\nSERVE_MEDIA = DEBUG\n\nSESSION_COOKIE_SECURE = True\n\nDEMO_UPLOADS_ROOT = '/home/vagrant/uploads/demos'\nDEMO_UPLOADS_URL = '/media/uploads/demos/'\n\nPROD_DETAILS_DIR = '/home/vagrant/product_details_json'\nMDC_PAGES_DIR    = '/home/vagrant/mdc_pages'\n\nGOOGLE_MAPS_API_KEY = \"ABQIAAAANRj9BHQi5ireVluCwVy0yRSrufPN8BjQWjkoRva24PCQEXS2OhSXu2BEgUH5PmGOmW71r2-tEuOVuQ\"\n\nRECAPTCHA_USE_SSL = True\nRECAPTCHA_PUBLIC_KEY = '6LdX8cISAAAAAA9HRXmzrcRSFsUoIK9u0nWpvGS_'\nRECAPTCHA_PRIVATE_KEY = '6LdX8cISAAAAACkC1kqYmpeSf-1geTmLzrLnq0t6'\n\nBITLY_USERNAME = 'lmorchard'\nBITLY_API_KEY = \"R_2653e6351e31d02988b3da31dac6e2c0\"\n\nEMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'\n#EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'\n#EMAIL_FILE_PATH = '/home/vagrant/logs/kuma-email.log'\n\n# Uncomment to enable a real celery queue\nCELERY_ALWAYS_EAGER = False\n\nINSTALLED_APPS = INSTALLED_APPS + (\n    \"django_extensions\",\n    \"debug_toolbar\",\n    \"devserver\",\n)\n\nJINGO_EXCLUDE_APPS = JINGO_EXCLUDE_APPS + (\n    'debug_toolbar',\n)\n\nDEBUG_TOOLBAR_CONFIG = {\n    \"INTERCEPT_REDIRECTS\": False,\n}\n\nDEBUG_TOOLBAR_PANELS = (\n    'debug_toolbar.panels.versions.VersionsPanel',\n    'debug_toolbar.panels.timer.TimerPanel',\n    'debug_toolbar.panels.settings.SettingsPanel',\n    'debug_toolbar.panels.headers.HeadersPanel',\n    'debug_toolbar.panels.request.RequestPanel',\n    'debug_toolbar.panels.templates.TemplatesPanel',\n    'debug_toolbar.panels.cache.CachePanel',\n    'debug_toolbar.panels.sql.SQLPanel',\n    'debug_toolbar.panels.signals.SignalsPanel',\n    'debug_toolbar.panels.logging.LoggingPanel',\n    'debug_toolbar.panels.redirects.RedirectsPanel',\n)\n\nDEVSERVER_MODULES = (\n    # sql modules interfere with saving some KumaScript templates\n    #'devserver.modules.sql.SQLRealTimeModule',\n    #'devserver.modules.sql.SQLSummaryModule',\n    'devserver.modules.profile.ProfileSummaryModule',\n\n    # Modules not enabled by default\n    #'devserver.modules.ajax.AjaxDumpModule',\n    #'devserver.modules.profile.MemoryUseModule',\n    #'devserver.modules.cache.CacheSummaryModule',\n    #'devserver.modules.profile.LineProfilerModule',\n)\n\n# The default database should point to the master.\nDATABASES = {\n    'default': {\n        'NAME': 'kuma',\n        'ENGINE': 'django.db.backends.mysql',\n        'HOST': 'localhost',\n        'USER': 'kuma',\n        'PASSWORD': 'kuma',\n        'OPTIONS': {'init_command': 'SET storage_engine=InnoDB'},\n    },\n}\n\nMIGRATION_DATABASES = {\n    'wikidb': {\n        'NAME': 'wikidb',\n        'ENGINE': 'django.db.backends.mysql',\n        'HOST': 'localhost',\n        'USER': 'wikiuser',\n        'PASSWORD': '2yeOr7ByBUMBiB4z',\n    },\n}\n\nCACHES = {\n    'default': {\n        # HACK: We currently have 'default' memcache disabled in production.\n        # This reflects that in local dev.\n        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',\n        #'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',\n        #'LOCATION': [\n        #    '127.0.0.1:11211',\n        #],\n        'TIMEOUT': 3600,\n        'KEY_PREFIX': 'kuma',\n    },\n    'secondary': {\n        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',\n        'LOCATION': [\n            '127.0.0.1:11211',\n        ],\n        'TIMEOUT': 3600,\n        'KEY_PREFIX': 'kuma',\n    }\n}\n\n# TODO: Switch this to 'default' when main cache issues are resolved\nSECONDARY_CACHE_ALIAS = 'secondary'\n\n# Use IP:PORT pairs separated by semicolons.\nCACHE_BACKEND = 'memcached://localhost:11211?timeout=60'\nCONSTANCE_DATABASE_CACHE_BACKEND = CACHE_BACKEND\n\n# This is used to hash some things in Django.\nSECRET_KEY = 'jenny8675309'\n\nDEBUG_PROPAGATE_EXCEPTIONS = DEBUG\n\nLOG_LEVEL = logging.DEBUG\n\nSITE_URL = 'https://developer-local.allizom.org'\nPROTOCOL = 'https://'\nDOMAIN = 'developer-local.allizom.org'\n\n# See: https://github.com/mozilla/django-browserid/issues/8 (TODO)\nBROWSERID_DISABLE_CERT_CHECK = True\nBROWSERID_CACERT_FILE = None\n\nLOGIN_REDIRECT_URL = '/'\nLOGIN_REDIRECT_URL_FAILURE = '/'\n\nKUMASCRIPT_URL_TEMPLATE = 'http://localhost:9080/docs/{path}'\n\nATTACHMENT_HOST = 'mdn-local.mozillademos.org'\n\nES_DISABLED = False\nES_URLS = ['http://127.0.0.1:9200']\nES_INDEXES = {'default': 'main_index'}\nES_INDEX_PREFIX = 'mdn'\nES_LIVE_INDEX = True\nES_INDEXING_TIMEOUT = 30\n\n# See https://mana.mozilla.org/wiki/display/websites/Developer+Cluster#DeveloperCluster-Sentry\nSENTRY_DSN = ''\n\nif SENTRY_DSN:\n    INSTALLED_APPS = INSTALLED_APPS + (\n        'raven.contrib.django.raven_compat',\n    )\n", "path": "puppet/files/vagrant/settings_local.py"}]}