Skip to main content

get_urlconf

Return the root URLconf to use for the current thread or asyncio task if it has been changed from the default one.

def get_urlconf(
default: any = None
) - > string

Return the root URLconf to use for the current thread or asyncio task if it has been changed from the default one.

Parameters

NameTypeDescription
defaultany = NoneThe fallback value to return if no thread-specific or task-specific URLconf has been configured.

Returns

TypeDescription
stringThe module path of the root URL configuration currently active for the execution context, or the default value if none is set.