Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask import Flask, request
- app = Flask(__name__)
- @app.route('/', methods=['GET'])
- def index():
- """
- Go to localhost:5000 to see a message
- """
- return ('This is a website.', 200, None)
- if __name__ == '__main__':
- app.run(debug=True, use_reloader=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement