MCPcopy
hub / github.com/django/django / serve

Method serve

django/contrib/staticfiles/handlers.py:48–50  ·  view source on GitHub ↗

Serve the request path.

(self, request)

Source from the content-addressed store, hash-verified

46 return url2pathname(relative_url)
47
48 def serve(self, request):
49 """Serve the request path."""
50 return serve(request, self.file_path(request.path), insecure=True)
51
52 def get_response(self, request):
53 try:

Callers 2

get_responseMethod · 0.95
serveFunction · 0.45

Calls 2

file_pathMethod · 0.95
serveFunction · 0.90

Tested by

no test coverage detected