get_object_or_404(klass, *args, **kwargs) [source]
get_object_or_404(klass, *args, **kwargs)
Calls get() on a given model manager, but it raises Http404 instead of the model’s DoesNotExist exception.
get()
Http404
DoesNotExist
Please login to continue.
Please login to continue.