Created
May 17, 2013 00:25
-
-
Save cedbeu/5596158 to your computer and use it in GitHub Desktop.
Minimal Flask application - Basic single-file design pattern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# coding: utf-8 | |
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def entry_point(): | |
return 'Hello World!' | |
if __name__ == '__main__': | |
app.run(debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment