Skip to main content

setup

Configure the settings (this happens as a side effect of accessing the first setting), configure logging and populate the app registry. Set the thread-local urlresolvers script prefix if set_prefix is True.

def setup(
set_prefix: boolean = True
) - > null

Configure the settings (this happens as a side effect of accessing the first setting), configure logging and populate the app registry. Set the thread-local urlresolvers script prefix if set_prefix is True.

Parameters

NameTypeDescription
set_prefixboolean = TrueDetermines whether to set the thread-local URL resolver script prefix based on the FORCE_SCRIPT_NAME setting.

Returns

TypeDescription
nullNothing is returned; the function performs global configuration and populates the application registry.