Advertisement
AyanUpadhaya

Flask web framework intro | Initiating App

Oct 16th, 2021
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. #Flask python micro web framework
  2.  
  3. from flask import Flask
  4.  
  5. app = Flask(__name__)
  6.  
  7. @app.route('/')
  8. def home():
  9.     return "<h1>Hello Flask</h1>"
  10.  
  11. if __name__=="__main__":
  12.     app.run(debug = True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement