Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. from flask import Flask, request
  2.  
  3. app = Flask(__name__)
  4.  
  5. @app.route('/', methods=['GET'])
  6. def index():
  7. """
  8. Go to localhost:5000 to see a message
  9. """
  10. return ('This is a website.', 200, None)
  11.  
  12. if __name__ == '__main__':
  13. app.run(debug=True, use_reloader=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement