This may be a good time to review Django's documentation on how to perform database queries:
https://docs.djangoproject.com/en/1.7/topics/db/queries/#retrieving-a-single-object-with-get
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAL13Cg8MaAhTh%2B%3DoGTJ75jeZVY8-gt_hMkUTjZxyLxFkQ%2Bx36Q%40mail.gmail.com.
Exception Type: | TypeError |
---|---|
Exception Value: | catching classes that do not inherit from BaseException is not allowed |
Did not work. |