Skip to main content

set_urlconf

Set the URLconf for the current thread or asyncio task (overriding the default one in settings). If urlconf_name is None, revert back to the default.

def set_urlconf(
urlconf_name: string|null
) - > null

Set the URLconf for the current thread or asyncio task (overriding the default one in settings). If urlconf_name is None, revert back to the default.

Parameters

NameTypeDescription
urlconf_name`stringnull`

Returns

TypeDescription
nullNothing is returned; the function modifies the thread-local or task-local state.