use ast to parse FLASK_APP

enables keyword arguments to factory functions
This commit is contained in:
David Lord 2020-04-07 17:54:51 -07:00
parent 1d5754bed7
commit 042754ba4a
4 changed files with 67 additions and 40 deletions

View file

@ -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