class documentation

class StaticFilesHandlerMixin:

Known subclasses: django.contrib.staticfiles.handlers.ASGIStaticFilesHandler, django.contrib.staticfiles.handlers.StaticFilesHandler

View In Hierarchy

Common methods used by WSGI and ASGI handlers.
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 media file on disk for the given URL.
Method get​_base​_url Undocumented
Method get​_response Undocumented
Async Method get​_response​_async Undocumented
Method load​_middleware Undocumented
Method serve Serve the request path.
Class Variable handles​_files Undocumented
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 media file on disk for the given URL.
def get_base_url(self):

Undocumented

def get_response(self, request):

Undocumented

async def get_response_async(self, request):

Undocumented

def load_middleware(self):

Undocumented

def serve(self, request):
Serve the request path.
handles_files: bool =

Undocumented