Warning: Declaration of action_plugin_translatebutton::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /usr/local/www/apache24/data/dokuwiki/lib/plugins/translatebutton/action.php on line 82
user:domenge:python:flaskr

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