After some debugging it appeared that the non-usable errors are caused by a 
Pinax middleware:

pinax.middleware.security.HideSensistiveFieldsMiddleware in MIDDLEWARE_CLASSES. 

If messes up the response object passed further along the chain. If you disable 
it all works as expected. But I'm not sure yet how that impacts Pinax 
functionality.


On May 24, 2011, at 6:23 PM, Olx wrote:

> Hello everyone!
> 
> I'm using Pinax-0.9a1 with Django-1.3 and generated "social" project.
> When I try to access http://localhost:8000/tweets/friends_tweets/ I'm
> getting the following:
> 
> AttributeError at /tweets/friends_tweets/
> 'bool' object has no attribute 'status_code'
> Request Method:       GET
> Request URL:  http://localhost:8000/tweets/friends_tweets/
> Django Version:       1.3
> Exception Type:       AttributeError
> Exception Value:
> 'bool' object has no attribute 'status_code'
> Exception Location:   /Volumes/Data/Documents/Projects/demo/eggs/
> django_debug_toolbar-0.8.3-py2.7.egg/debug_toolbar/middleware.py in
> process_response, line 98
> Python Executable:    /Library/Frameworks/Python.framework/Versions/2.7/
> Resources/Python.app/Contents/MacOS/Python
> Python Version:       2.7.1
> 
> 
> When I disable django toolbar application completely the following
> happens:
> 
> 
> AttributeError at /tweets/friends_tweets/
> 'bool' object has no attribute 'has_header'
> Request Method:       GET
> Request URL:  http://localhost:8000/tweets/friends_tweets/
> Django Version:       1.3
> Exception Type:       AttributeError
> Exception Value:
> 'bool' object has no attribute 'has_header'
> Exception Location:   /Volumes/Data/Documents/Projects/demo/parts/
> americandream/django/utils/cache.py in patch_vary_headers, line 127
> Python Executable:    /Library/Frameworks/Python.framework/Versions/2.7/
> Resources/Python.app/Contents/MacOS/Python
> Python Version:       2.7.1
> 
> The same error happens when some of the templates is missing. The
> major pain is debugging application with such error reporting. It
> takes 20-30 minutes to figure out what's wrong the next time you see
> it.
> 
> Anyone experienced the similar?
> 
> Thank you in advance,
> Alex
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Pinax Core Development" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/pinax-core-dev?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Pinax Core Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pinax-core-dev?hl=en.

Reply via email to