Tuesday, December 27, 2011

Django 'matching query does not exist'

When you encounter 'ClassName matching query does not exist' error in Django, it means that somewhere you have such code:

item = ClassName.objects.get(key=value)

but there's no item that satisfies key=value. So it gives this error. Be aware of this. There are some other sites which makes you confuse although this is a very simple error

No comments: