How to resolve werkzeug.routing.BuildError ?
Created 3 years ago
5931
Views
1
Comments
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'))