Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Flask demo code

from flask import Flask  
  
app = Flask(__name__) #creating the Flask class object   
 
@app.route('/') #decorator drfines the   
def home():  
    return "hello, this is our first flask website";  
  
if __name__ =='__main__':  
    app.run(debug = True)  
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #Flask #demo #code
ADD COMMENT
Topic
Name
6+7 =