Class XViewMiddleware
Add an X-View header to internal HEAD requests.
Declaration
source linkDocumentation
Methods
▶ def process_view(self, request, view_func, view_args, view_kwargs) If the request method is HEAD and either the IP is internal or the
user is a logged-in staff member, return a response with an x-view
header indicating the view function. This is used to lookup the view
function for an arbitrary page.