Last active
August 17, 2017 17:33
-
-
Save thiagodelgado111/938b018bed52b595b673 to your computer and use it in GitHub Desktop.
flask hello world
This file contains 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
#!/bin/python | |
from flask import Flask, render_template, jsonify, send_from_directory, request | |
app = Flask("MY_GR8_APP", static_folder='static', static_url_path='') | |
app.debug = True | |
@app.route("/hello/") | |
def richie(): | |
return "It's me you're looking for..." | |
if __name__ == '__main__' : | |
print "Flask is running, navigate to http://localhost:5000/hello" | |
app.run() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment