Flaskr

Flaskr site

[monflaskr] [admin@vertigo] ~/flask/examples/flaskr/flaskr% python flaskr.py
#to give a remote access
app.run(host='0.0.0.0')

http://example.com:5000/

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
user/domenge/python/flaskr.txt · Dernière modification: 2018/11/05 09:43 par domenge
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0