One - One Code All

Blog Content

flask部署一个静态网页app.send_static_file

Python   2013-09-13 18:12:12

flask部署一个静态网页app.send_static_file

from flask import Flask

app = Flask(__name__, static_url_path='')

@app.route('/')
def index():
    return app.send_static_file('index.html')

if __name__ == '__main__':
    app.run()



上一篇:pandas中dataframe的查询方法([], loc, iloc, at, iat, ix)
下一篇:Apache服务httpd配置SSL证书以及HTTP重定向HTTPS

The minute you think of giving up, think of the reason why you held on so long.