I was looking for something similar to print_r in PHP for Django. I haven’t really found something other than:
import pprint
pprint.pprint(dir(modelorobject))
and using:
{% debug %}
in your template, wich display all kinds of debug info.
If anyone has more info on debugging Django, or a print_r kind of way of outputting debug info, please use the comments.
In this context [...]
After upgrading to Django 1.0 I got the following error when using the new comment framework in one of my templates:
Caught an exception while rendering: Reverse for ” not found.
After some searching I read somewhere I had to delete the old .pyc files (from before the Django upgrade). After doing that, everything worked as [...]
I kept getting a validation error in the django admin pages while trying to upload an image. The validation error said:
Upload a valid image. The file you uploaded was either not an image or
a corrupted.
I really broke my brains on this one but finally got it to work! I knew for sure that [...]