MCPcopy
hub / github.com/django/django / set_script_prefix

Function set_script_prefix

django/urls/base.py:120–126  ·  view source on GitHub ↗

Set the script prefix for the current thread.

(prefix)

Source from the content-addressed store, hash-verified

118
119
120def set_script_prefix(prefix):
121 """
122 Set the script prefix for the current thread.
123 """
124 if not prefix.endswith("/"):
125 prefix += "/"
126 _prefixes.value = prefix
127
128
129def get_script_prefix():

Callers 6

setupFunction · 0.90
handleMethod · 0.90
__call__Method · 0.90
enableMethod · 0.90
disableMethod · 0.90
set_script_nameMethod · 0.90

Calls

no outgoing calls

Tested by 1

set_script_nameMethod · 0.72