摘要:
蓝图结构: manage.py __init__.py account.py admin.py user.py login.html 阅读全文
摘要:
方法和函数 阅读全文
摘要:
from flask import Flask,session,flash,get_flashed_messages app = Flask(__name__) app.secret_key = 'asdfasdfasdf' @app.route('/x1',methods=['GET','POST 阅读全文
摘要:
before_request、after_requestfrom flask import Flask,render_template,redirect app = Flask(__name__) """ before_reuqest = [xxxxxxxxxx1,xxxxxxxxxx2] """ 阅读全文
摘要:
""" 1. 请求刚刚达到 ctx = RequestContext(...) - request - session=None ctx.push() ctx.session = SecureCookieSessionInterface.open_session 2. 视图函数 3. 请求结束 Se 阅读全文