from flask import Flask, current_app app = Flask(__name__) with app.app_context(): ... instead of on the flask.g object which is reserved for user code.
確定! 回上一頁