forked from orbit-oss/flask
use ast to parse FLASK_APP
enables keyword arguments to factory functions
This commit is contained in:
parent
0d04b40d13
commit
ff2f71379b
4 changed files with 67 additions and 40 deletions
|
|
@ -76,8 +76,8 @@ found, the command looks for a factory function named ``create_app`` or
|
|||
``make_app`` that returns an instance.
|
||||
|
||||
If parentheses follow the factory name, their contents are parsed as
|
||||
Python literals and passed as arguments to the function. This means that
|
||||
strings must still be in quotes.
|
||||
Python literals and passed as arguments and keyword arguments to the
|
||||
function. This means that strings must still be in quotes.
|
||||
|
||||
|
||||
Run the Development Server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue