diff --git a/django/urls/base.py b/django/urls/base.py index b7c1b83ea3db..4df1f372eaf1 100644 --- a/django/urls/base.py +++ b/django/urls/base.py @@ -132,7 +132,7 @@ def get_script_prefix(): wishes to construct their own URLs manually (although accessing the request instance is normally going to be a lot cleaner). """ - return getattr(_prefixes, "value", "/") + return _prefixes.__dict__.get("value", "/") def clear_script_prefix():