fonctionnel mais il faut que la commande uwsgi -s qui crée le socket soit active dans le shell.
17 lines
258 B
Python
17 lines
258 B
Python
#!usr/local/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from flask import Flask
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
@app.route("/")
|
|
def hello():
|
|
return "<h1 style='color:blue'>Hello There!</h1>"
|
|
|
|
if __name__ == "__main__":
|
|
app.debug = True
|
|
app.run(host='0.0.0.0')
|