MCPcopy
hub / github.com/django/django / get_caller

Function get_caller

django/views/debug.py:102–109  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

100
101
102def get_caller(request):
103 resolver_match = request.resolver_match
104 if resolver_match is None:
105 try:
106 resolver_match = resolve(request.path)
107 except Http404:
108 pass
109 return "" if resolver_match is None else resolver_match._func_path
110
111
112class SafeExceptionReporterFilter:

Callers 2

get_traceback_dataMethod · 0.85
technical_404_responseFunction · 0.85

Calls 1

resolveFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…