How to run Flask app with custom parameters?
I'm trying to run my Flask app with some additional parameters. I use click and faced the following problem. If I don't use any parameters and use just a regular flask run command the app is running but ignores my additional parameter. python -m flask run If I run the custom command the app executes the command code but doesn't run the app itself: python -m flask dbinit -u Instead it just goes through and shows the following message: " D:..\main.py:18: Warning: Silently ignoring app.run() because the application is run from the flask command line executable. Consider putting app.run() behind a
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.