Commit 24c645e3 by David Ormsbee

Enable django-debug-toolbar to help with AJAX requests.

Requires installation of Chrome extension:
https://chrome.google.com/webstore/detail/django-debug-panel/nbiajhhibgfgkjegbnflpdccejocmbbn
parent f886f64f
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
# Debug tools # Debug tools
bpython==0.12 bpython==0.12
django-debug-toolbar==0.11.0 django-debug-panel==0.8.0
django-debug-toolbar==1.0.1
django-pdb==0.3.2 django-pdb==0.3.2
sqlparse==0.1.10 sqlparse==0.1.10
......
...@@ -7,12 +7,29 @@ from .base import * ...@@ -7,12 +7,29 @@ from .base import *
INSTALLED_APPS += ( INSTALLED_APPS += (
'django_pdb', # Allows post-mortem debugging on exceptions 'django_pdb', # Allows post-mortem debugging on exceptions
'debug_panel',
'debug_toolbar', 'debug_toolbar',
) )
MIDDLEWARE_CLASSES += ( MIDDLEWARE_CLASSES += (
'django_pdb.middleware.PdbMiddleware', # Needed to enable shell-on-crash behavior 'django_pdb.middleware.PdbMiddleware', # Needed to enable shell-on-crash behavior
'debug_toolbar.middleware.DebugToolbarMiddleware', 'debug_panel.middleware.DebugPanelMiddleware',
) )
INTERNAL_IPS = ('127.0.0.1',) INTERNAL_IPS = ('127.0.0.1',)
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'debug-panel',
},
# this cache backend will be used by django-debug-panel
'debug-panel': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'debug-panel',
'OPTIONS': {
'MAX_ENTRIES': 200
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment