Document required signature of before_first_request-decorated functions
This commit is contained in:
parent
6a2524634d
commit
fe6bcffdad
1 changed files with 3 additions and 0 deletions
|
|
@ -1258,6 +1258,9 @@ class Flask(_PackageBoundObject):
|
|||
"""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.
|
||||
|
||||
.. versionadded:: 0.8
|
||||
"""
|
||||
self.before_first_request_funcs.append(f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue