GUVI
Back

How to resolve werkzeug.routing.BuildError ?

114 Views
1 Comments

SiddheshShankar
SiddheshShankar 8 mons ago
SiddheshShankar
@SiddheshShankarProfile is locked. Login

Hi Sir, I am getting the below mentioned error.

werkzeug.routing.BuildError: Could not build url for endpoint 'index2'. Did you mean 'index' instead?

I have created 2 HTML files index.html and index2.html. I am able to access the index.html page but I am getting BuildError while accessing index2.html.

Below is the function that I have used for redirecting:

@app.route('/dummy')
def dummy():
    return redirect(url_for('index2'))

Comments
Please login to comment.
 
Habitate.io