class documentation

class FSFilesHandler(WSGIHandler):

Known subclasses: django.test.testcases._MediaFilesHandler, django.test.testcases._StaticFilesHandler

View In Hierarchy

WSGI middleware that intercepts calls to a directory, as defined by one of the *_ROOT settings, and serves those files, publishing them under *_URL.
Method __call__ Undocumented
Method __init__ Undocumented
Method ​_should​_handle Check if the path should be handled. Ignore the path if: * the host is provided as part of the base_url * the request's path isn't under the media path (or equal)
Method file​_path Return the relative path to the file on disk for the given URL.
Method get​_response Return an HttpResponse object for the given HttpRequest.
Method serve Undocumented
Instance Variable application Undocumented
Instance Variable base​_url Undocumented

Inherited from BaseHandler (via WSGIHandler):

Method ​_get​_response Resolve and call the view, then apply view, exception, and template_response middleware. This method is everything that happens inside the request/response middleware.
Async Method ​_get​_response​_async Resolve and call the view, then apply view, exception, and template_response middleware. This method is everything that happens inside the request/response middleware.
Method adapt​_method​_mode No summary
Method check​_response Raise an error if the view returned None or an uncalled coroutine.
Async Method get​_response​_async Asynchronous version of get_response.
Method load​_middleware Populate middleware lists from settings.MIDDLEWARE.
Method make​_view​_atomic Undocumented
Method process​_exception​_by​_middleware Pass the exception to the exception middleware. If no middleware return a response for this exception, return None.
Method resolve​_request Retrieve/set the urlconf for the request. Return the view resolved, with its args and kwargs.
Instance Variable ​_exception​_middleware Undocumented
Instance Variable ​_middleware​_chain Undocumented
Instance Variable ​_template​_response​_middleware Undocumented
Instance Variable ​_view​_middleware Undocumented
def __call__(self, environ, start_response):
def __init__(self, application):
def _should_handle(self, path):
Check if the path should be handled. Ignore the path if: * the host is provided as part of the base_url * the request's path isn't under the media path (or equal)
def file_path(self, url):
Return the relative path to the file on disk for the given URL.
def get_response(self, request):
Return an HttpResponse object for the given HttpRequest.
def serve(self, request):

Undocumented

application =

Undocumented

base_url =

Undocumented