Skip to content

Instantly share code, notes, and snippets.

@clarete
Created March 30, 2014 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clarete/9879819 to your computer and use it in GitHub Desktop.
Save clarete/9879819 to your computer and use it in GitHub Desktop.
import flask
app = flask.Flask(__name__)
@app.route('/')
def index():
return 'oi! voce veio do site: {0}. Clique <a href="/">aqui</a>'.format(flask.request.referrer)
if __name__ == '__main__':
app.run(host='0.0.0.0', port=80, debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment