#!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Flask, render_template, Blueprint
app = Flask(__name__)
# Added /images to static_url_path
add_app = Blueprint("images", __name__,
static_url_path='/images', static_folder='./images')
app.register_blueprint(add_app)
@app.route("/")
def hello():
return render_template('static.html')
if __name__ == "__main__":
#app.run()
app.run(host='0.0.0.0', port=8000,
debug=True) |