Last active
August 29, 2015 14:08
-
-
Save tzengerink/e1f027e7e96bd5fdde33 to your computer and use it in GitHub Desktop.
Minimal Flask Application
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
from flask import Flask, request | |
app = Flask(__name__) | |
@app.route('/') | |
def ip(): | |
return request.environ['REMOTE_ADDR'] + '\n' | |
if __name__ == '__main__': | |
app.run() |
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
Flask==0.10.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment