flask.Flask.before_first_request

Flask.before_first_request(*args, **kwargs)[source]

Registers a function to be run before the first request to this instance of the application.

The function will be called without any arguments and its return value is ignored.

New in version 0.8.