MCPcopy
hub / github.com/django/django / clear_script_prefix

Function clear_script_prefix

django/urls/base.py:138–145  ·  view source on GitHub ↗

Unset the script prefix for the current thread.

()

Source from the content-addressed store, hash-verified

136
137
138def clear_script_prefix():
139 """
140 Unset the script prefix for the current thread.
141 """
142 try:
143 del _prefixes.value
144 except AttributeError:
145 pass
146
147
148def set_urlconf(urlconf_name):

Callers 3

set_script_nameMethod · 0.90
test_not_prefixedMethod · 0.90

Calls

no outgoing calls

Tested by 3

set_script_nameMethod · 0.72
test_not_prefixedMethod · 0.72