django.http Http404 Python Code Examples

Http404 (source code) is a Django convenience exception class that returns your application's standard error page and an HTTP 404 status code.

Note that while Http404 is typically imported from django.http, the source code for the exception lives under django.http.responses.

Example 1 from wagtail

wagtail (project website) is a Django-based content management system (CMS) with open source code provided under the BSD 3-Clause "New" or "Revised" License.

wagtail / wagtail / core / models.py