Skip to main content

shell_command

Run an interactive Python shell in the context of a given Flask application. The application will populate the default namespace of this shell according to its configuration.

This is useful for executing small snippets of management code
without having to manually configure the application.
def shell_command() - > None

Run an interactive Python shell in the context of a given Flask application. The application will populate the default namespace of this shell according to its configuration. This is useful for executing small snippets of management code without having to manually configure the application.

Returns

TypeDescription
NoneThis function does not return a value; it starts an interactive blocking session.