SHARE
TWEET

Untitled

a guest Jun 24th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top