# -*- coding: utf-8 -*- DEBUG = True
# -*- coding: utf-8 -*- from flask import Flask,session,current_app app = Flask(__name__) app.secret_key = "HQ" #配置文件 # 方式一 # app.config["SESSION_COOKIE_NAME"] = "session_id" # 方式二 # app.config.from_pyfile("config.py") # 方式三 # import os # os.environ["FLAKS-SETTINGS"] = "config.py" # app.config.from_envvar("FLAKS-SETTINGS") # 方式四 # app.config.from_object("config") @app.route("/index") def index(): return "INdex" if __name__ == '__main__': app.run()