Advertisement
Guest User

Untitled

a guest
Oct 31st, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. from flask import Flask, render_template, url_for
  2.  
  3.  
  4. app = Flask(__name__) ### get name of module
  5.  
  6. @app.route('/')
  7. def index():
  8.     return render_template("index.html")
  9.  
  10.  
  11. if __name__ == '__main__':
  12.     app.run( 'localhost',debug = True)
  13.  
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement