#config.py
debue = True
#index.py
from flask import Flask
//导入配置文件
import config
app=Flask(__name__)
//并配置到app中
app.config.from_object(config)
@app.route('/')
def hello_world():
return 'Hello'
if __name__=='__main__':
app.run()
#config.py
debue = True
#index.py
from flask import Flask
//导入配置文件
import config
app=Flask(__name__)
//并配置到app中
app.config.from_object(config)
@app.route('/')
def hello_world():
return 'Hello'
if __name__=='__main__':
app.run()