Flaskr
[monflaskr] [admin@vertigo] ~/flask/examples/flaskr/flaskr% python flaskr.py
#to give a remote access app.run(host='0.0.0.0')
Flask e Bootstrap
from flask import Flask, render_template from flask_bootstrap import Bootstrap app= Flask(__name__) Bootstrap(app) @app.route('/') def index(): return render_template('index.html') if __name__ == '__main__': app.run(host='0.0.0.0' ,debug=True)
L'estructura del dorsièr es :
server.py ./static: ./templates: index.html