Run Flask CLI command with PyCharm debugger

PyCharm’s “Flask server” configuration only calls the flask run command, it doesn’t provide a way to call other commands. To do that, create a regular “Python” configuration that runs the flask command with the arguments you want. Create a “Python” configuration and give it a name. Select “Module name” instead of “Script path” and type … Read more