Skip to content

Instantly share code, notes, and snippets.

@thiagodelgado111
Last active August 17, 2017 17:33
Show Gist options
  • Save thiagodelgado111/938b018bed52b595b673 to your computer and use it in GitHub Desktop.
Save thiagodelgado111/938b018bed52b595b673 to your computer and use it in GitHub Desktop.
flask hello world
#!/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