Skip to content

Glossary: Django Basics

DoesNotExist

Also written: MultipleObjectsReturned

The exception `.get()` raises when no row matches (`MultipleObjectsReturned` if more than one does). Use `.get()` only for unique values such as a slug.

Where the book teaches it

Related terms

QuerySetget_object_or_404()