MCPcopy
hub / github.com/django/django / get_urlconf

Function get_urlconf

django/urls/base.py:161–166  ·  view source on GitHub ↗

Return the root URLconf to use for the current thread or asyncio task if it has been changed from the default one.

(default=None)

Source from the content-addressed store, hash-verified

159
160
161def get_urlconf(default=None):
162 """
163 Return the root URLconf to use for the current thread or asyncio task if it
164 has been changed from the default one.
165 """
166 return getattr(_urlconfs, "value", default)
167
168
169def is_valid_path(path, urlconf=None):

Callers 6

get_context_dataMethod · 0.90
_get_view_funcMethod · 0.90
response_for_exceptionFunction · 0.90
resolveFunction · 0.85
reverseFunction · 0.85

Calls

no outgoing calls

Tested by 1