Issue
How to fix this error :
cannot import name 'reder_template' from 'flask' (/usr/local/lib/python3.9/site-packages/flask/init.py)
from flask import Flask, request, reder_template, redirect
import os
import sqlite3
currentlocation = os.path.dirname(os.path.abspath(__file__))
myapp = Flask(__name__)
@myapp.route("/")
def homepage():
return render_template("homepage.html")
Solution
The problem is a typo, you have imported reder_template
instead of render_template
from flask
.
Answered By - Aaron Meese
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.