Skip to content

Make Django Debug Toolbar compatible with Django 1.3 #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

msaelices
Copy link

I am testing Django Debug Toolbar with Django 1.3

Because Django 1.3 response.content object can be an iterable (when serving static content), you always miss the content if you operate with response.content.

In example:

>>> response.content
'alert("Hello world");'
>>> response.content
''

This make fails request like http://localhost:8000/**debug**/m/js/toolbar.js or similar (CSS and JS). This are always small CSS or JS snippets and I've fixed the issue only copying response.content in a local variable and reassigning againg this variable to response.

Also, the AJAX views should be implemented avoiding CSRF protection checking.

msaelices added 2 commits March 7, 2011 16:23
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants