Skip to main content

is_django_path

Return True if the given file path is nested under Django.

def is_django_path(
path: string | Path
) - > boolean

Return True if the given file path is nested under Django.

Parameters

NameTypeDescription
path`stringPath`

Returns

TypeDescription
booleanTrue if the provided path is located within the Django package directory structure, False otherwise