直接运行就这样了
前几天还可以的..不知道怎么突然就不行了.
求熟手帮忙看看原因.
高洛峰2017-04-17 14:40:37
flask-script
To use this plug-in, enter
python hello.py runserver
Use the pycharm
function of run
and just execute python hello.py
without adding the runserver parameter. Therefore the script is executed without parameters.
The solution is to use the drop-down arrow of the run option, select the edit configure
option, and then add it in script parameters
怪我咯2017-04-17 14:40:37
Already in the prompt
usage: hello.py [-?] {runserver, shell} ...
Try it
python.exe D:\...\hello.py runserver
Or change the last line of code to
app.run()