【发布时间】:2018-08-02 04:40:19
【问题描述】:
我有一个烧瓶应用程序,我想在其中创建一个电子邮件系统,以便向用户发送电子邮件。所以我做了两个导入:
from flask_mail import Message
from app import mail
但是,每当我从应用程序导入电子邮件时,每当我尝试运行我的应用程序时都会收到此错误。
Usage: flask run [OPTIONS]
Error: The file/path provided (routes) does not appear to exist. Please verify the path is correct. If app is not on PYTHONPATH, ensure the extension is .py
【问题讨论】: