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's gravatar image

jac
220211
accept rate: 22%

edited 13 Dec '11, 17:28

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×10
×3

Asked: 13 Dec '11, 16:06

Seen: 118 times

Last updated: 15 Dec '11, 05:58

powered by OSQA