Calls get() on a given model manager, but it raises Http404 instead of the model’s DoesNotExist exception. — отсюда ... If you raise Http404 at any point in a view function, Django will catch it and return the standard error page for your application, along with an HTTP error code 404. — отсюда
Обсуждают сегодня