Whenever I set DEBUG = True, all pageloads result in a TemplateSyntaxError.
Here is the relevant part of settings_local:
DEBUG = True
DEBUG_TOOLBAR_CONFIG = {'INTERCEPT_REDIRECTS': True}
TEMPLATE_DEBUG = DEBUG
INTERNAL_IPS = ('127.0.0.1',)
And here's the TemplateSyntaxError:
TemplateSyntaxError at /
Caught AttributeError while rendering: 'Template' object has no attribute 'origin'
Request Method: GET
Request URL: http://localhost:8000/
Django Version: 1.3
Exception Type: TemplateSyntaxError
Exception Value:
Caught AttributeError while rendering: 'Template' object has no attribute 'origin'
Exception Location: /Library/Python/2.6/site-packages/django_debug_toolbar-0.8.5-py2.6.egg/debug_toolbar/panels/template.py in content, line 83
Python Executable: /usr/bin/python
Python Version: 2.6.1
**Template error**
In template /Library/Python/2.6/site-packages/django_debug_toolbar-0.8.5-py2.6.egg/debug_toolbar/templates/debug_toolbar/base.html, error at line 48
Caught AttributeError while rendering: 'Template' object has no attribute 'origin'
38 </div>
39 {% for panel in panels %}
40 {% if panel.has_content %}
41 <div id="{{ panel.dom_id }}" class="panelContent">
42 <div class="djDebugPanelTitle">
43 <a href="" class="djDebugClose">{% trans "Close" %}</a>
44 <h3>{{ panel.title|safe }}</h3>
45 </div>
46 <div class="djDebugPanelContent">
47 <div class="scroll">
48 {{ panel.content|safe }}
49 </div>
50 </div>
51 </div>
52 {% endif %}
53 {% endfor %}
54 <div id="djDebugWindow" class="panelContent"></div>
55 </div>
My Django DEBUG Tollbar version: 0.8.5
I suspect this is a problem with OSQA's integration with Django Debug Toolbar. What is causing this error and how can I enable the debug toolbar to work properly?
Thanks in advance.
EDIT:
This occurs on the following urls:
It does not happen on the following urls:
asked
13 Dec '11, 16:06
jac
220●2●11
accept rate:
22%