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 0d04b40d13
commit ff2f71379b
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
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