# https://docs.djangoproject.com/en/1.6/ref/settings/#core-settings
#
-# Models
-
-if django.VERSION >= (1, 7):
- INSTALLED_APPS += [
- 'debug_toolbar'
- ]
-
# Security
SECRET_KEY = '00000000000000000000000000000000000000000000000000'
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
+#
+# Third-party application settings
+#
+
+# django-debug-toolbar
+
+if django.VERSION >= (1, 7):
+ INSTALLED_APPS += [
+ 'debug_toolbar'
+ ]
+
+ DEBUG_TOOLBAR_PATCH_SETTINGS = False
+
+ # This should go first in the middleware classes
+ MIDDLEWARE_CLASSES = [
+ 'debug_toolbar.middleware.DebugToolbarMiddleware',
+ ] + MIDDLEWARE_CLASSES
+
+ INTERNAL_IPS = ['127.0.0.1', '::1']
+
+
#
# Patchwork settings
#
# along with Patchwork; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+import django
from django.conf import settings
from django.conf.urls import url, include
from django.contrib import admin
url(r'^help/(?P<path>.*)$', help_views.help, name='help'),
]
+if 'debug_toolbar' in settings.INSTALLED_APPS:
+ import debug_toolbar
+ urlpatterns += [
+ url(r'^__debug__/', include(debug_toolbar.urls)),
+ ]
+
if settings.ENABLE_XMLRPC:
urlpatterns += [
url(r'xmlrpc/$', xmlrpc_views.xmlrpc, name='xmlrpc'),