Django: More helpful error messages for DoesNotExist errors? -
is possible coax django giving more information doesnotexist
errors?
for example, really nice if include query… like:
>>> foo.objects.get(id="example_id") ... doesnotexist: no objects matching id="example_id" found
sure, can sql django has executed.
see http://docs.djangoproject.com/en/dev/faq/models/#how-can-i-see-the-raw-sql-queries-django-is-running
Comments
Post a Comment