How do I import the DoesNotExist exception? This doesn't seem to work: > from django.db.models.query import DoesNotExist > try: > tag = Tag.objects.get(name=cat_name) > except DoesNotExist: > # do something else Doesn't DoesNotExist exist?
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

