MCPcopy
hub / github.com/django/django / django_file_prefixes

Function django_file_prefixes

django/utils/deprecation.py:15–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14@functools.cache
15def django_file_prefixes():
16 file = getattr(django, "__file__", None)
17 if file is None:
18 return ()
19 return (os.path.join(os.path.dirname(file), ""),)
20
21
22class RemovedInNextVersionWarning(DeprecationWarning):

Callers 15

__iter__Method · 0.90
__getitem__Method · 0.90
__init_subclass__Method · 0.90
__init__Method · 0.90
salted_hmacFunction · 0.90
__init__Method · 0.90
base64_hmacFunction · 0.90
sourceMethod · 0.90
parseMethod · 0.90

Calls 1

joinMethod · 0.45

Tested by 3

test_no_fileMethod · 0.72
test_with_fileMethod · 0.72