Skip to main content

django_file_prefixes

Returns a cached tuple containing the directory path of the installed Django package to serve as a file prefix.

def django_file_prefixes() - > tuple

Returns a tuple containing the absolute directory path where the Django package is installed. This is used to identify and filter file paths belonging to the Django framework during stack trace analysis or file discovery.

Returns

TypeDescription
tupleA tuple containing the base directory path of the Django installation with a trailing path separator, or an empty tuple if Django is not found.