HTML Template in Flask python Application 2

HTML Template in Flask python Application 2

 

source code

[sourcecode] #using html templates in flask
#lets import flask
from flask import Flask
#Lets import render_template also
from flask import render_template
#Let create new app
app = Flask(__name__)
#Lets create new route
@app.route(‘/’)
#Lets create a function
def index():

return render_template(‘index.html’)
#Lets create a template folder and index.html file but first
# complete this program

app.run(debug=True, port=8080)

[/sourcecode]

https://github.com/asadbitra/flask-html-templates

Tony BB
 

TonyBB is a Coach , marketer, hypnotist and a founder of RSKVF Production who specializes in providing simple, affordable, and easy to use solutions for Life.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: