On 19-08-11 04:03, smartaz wrote:
I think the error is in image.png GET, a python syntax error but I can
not think where (I do not know how to retrieve the trace of a 500
error in django, I installed django debug toolbar) it seems that
python can not write the file with the image ..the content type? ..I
don't understand, .this second view works when i ask an httpresponse
instead of the template
Ah! You're getting the 500 on the image, so you can't easily see the
full 500 traceback in your browser as the html renders just fine.
Two options:
- Just go directly to the url of the image instead of to the html page
that contains the img tag. Then you'll see the 500 traceback of your
image itself. (Assuming DEBUG=True in your settings.py).
- Install firebug (or use chrome's/safari's build-in developer tools)
and look at the various responses. There you can normally directly see
the 500 error text.
Seeing the traceback ought to show you the problem.
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
[email protected] http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--
You received this message because you are subscribed to the Google Groups "Django
users" 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/django-users?hl=en.