Hi there,
So as I'm following the video as typing the code i got into the login_requried mode in views.py. As i put the @login_required in views.route as Tim showed, and in the others routes, as put the user= current user as well, when i go to the site it appears the alert message that i need to login to access the page
When I refresh the page the alert disappears but it shoulndt be there in the first place.
Hi there, So as I'm following the video as typing the code i got into the login_requried mode in views.py. As i put the @login_required in views.route as Tim showed, and in the others routes, as put the user= current user as well, when i go to the site it appears the alert message that i need to login to access the page
When I refresh the page the alert disappears but it shoulndt be there in the first place.