django.http HttpResponseNotModified Python Code Examples

HttpResponseNotModified (source code) returns the HTTP 304 status code from a Django web application view. The HTTP 304 status code indicates that the resource has not been modified since the client last requested it.

HttpResponseRedirect and HttpResponsePermanentRedirect are other types of 300-level HTTP status codes that can be sent as a response by your Django application.

Example 1 from wagtail

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

wagtail / wagtail / utils / sendfile_streaming_backend.py