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
| Name | Type | Description |
|---|---|---|
| set_prefix | boolean = True | Determines whether to set the thread-local URL resolver script prefix based on the FORCE_SCRIPT_NAME setting. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the function performs global configuration and populates the application registry. |