locate_app
No overview available.
def locate_app(
module_name: str,
app_name: str | None,
raise_if_not_found: t.Literal[True] = True
) - > Flask
Attempts to find and instantiate a Flask application instance from a given module and optional attribute name.
Parameters
| Name | Type | Description |
|---|---|---|
| module_name | str | The fully qualified name of the Python module to search for the application. |
| app_name | `str | None` |
| raise_if_not_found | t.Literal[True] = True | Determines if an exception should be raised if the application cannot be located; defaults to True. |
Returns
| Type | Description |
|---|---|
Flask | The discovered Flask application instance. |