# config:utf-8
from flask import Blueprint
main_app = Blueprint('main', __name__, template_folder='../views/')
from . import views, errors <- 这行
Flask 应用 放到顶层在 views 和 errors 就报 can not import 'main'
错误。放到底下吧,就不 PEP 了……
1
cevincheung OP |