flask return html
from flask import Flask, render_template
@app.route('/my_page')
def returnHTML():
return render_template('my_page.html')
flask return html
from flask import Flask, render_template
@app.route('/my_page')
def returnHTML():
return render_template('my_page.html')
flask page
from flask import Flask # Imports flask
app = Flask(__name__) # Setting up the app
@app.route('/') # Sets the route for the page
def hello_world():
return 'Hello, World!' # Returns 'Hello, World' wheen
# you go to the '/' or main page
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us