Skip to main content

get_resolver

Returns a URL resolver for the specified URL configuration, defaulting to the project's root URL configuration if none is provided.

def get_resolver(
urlconf: string = None
) - > URLResolver

Retrieves the URL resolver for a given URL configuration, defaulting to the project's root URLconf if none is provided.

Parameters

NameTypeDescription
urlconfstring = NoneThe Python import path to the URL configuration module to be resolved.

Returns

TypeDescription
URLResolverA cached URL resolver instance capable of matching requested URLs against defined patterns.