Flask Shell Commands not working

后端 未结 2 1801
-上瘾入骨i
-上瘾入骨i 2021-02-15 13:32

I\'m new to python and flask and currently working on the Flask Mega-Tutorial, however: I\'m stuck getting flask shell to recognize my custom symbols/commands.

2条回答
  •  耶瑟儿~
    2021-02-15 14:06

    Flask needs to be told how to import it, by setting the

    FLASK_APP:(venv) $ export FLASK_APP=microblog.py
    

    If you are using Microsoft Windows, use set instead of export in the command above.

提交回复
热议问题