nick34992 of Python
2/2/2017 - 6:52 AM

Python Flask WSGI Routing Technique #python #flask #wsgi

Python Flask WSGI Routing Technique #python #flask #wsgi

#!/usr/bin/env python3

from flask import Flask
app = Flask(__name__)

@app.route('/run')
def runner():
    '''URL http://localhost:5000/run is bound to runner().'''
    return 'Flask is running! Take that keyboard and run with it!'
if __name__ == '__main__':
    app.debug=True
    app.run()
    app.run(debug=True)