Redirects Not Working Properly On Heroku But They Do On Localhost
i am developing my first flask web app that involves login, sessions and of course redirects. It is a webapp where schools can log in and view bullying reports from their students.
Solution 1:
You would generally want to use redirect with url_for. For example in this case instead of saying redirect("/login")
, do redirect(url_for('login'))
. Also, make sure that you import the url_for function from flask.
Post a Comment for "Redirects Not Working Properly On Heroku But They Do On Localhost"