Log Out With User Authentication - Django Wednesdays #22
ฝัง
- เผยแพร่เมื่อ 30 มิ.ย. 2024
- In this video we'll add the ability to log out a user in our Django App.
Logging out witht he Django User Authentication system is very easy, we'll just create a simple view and url to handle it.
I'll also show you how to determine whether or not a user is logged in or not and show a different navbar link accordingly.
#django #codemy #JohnElder
Timecodes
0:00 - Introduction
1:08 - Navbar user.is_authenticated
3:00 - Logout User View
4:00 - Logout Flash Message
5:00 - Logout URL
6:00 - Logout Navbar Link
6:39 - Conclusion
▶️ Watch Entire Django Wednesdays Playlist ✅ Subscribe To My TH-cam Channel:
bit.ly/35Xo9jD bit.ly/2IGzvOR
▶️ See More At: ✅ Join My Facebook Group:
Codemy.com bit.ly/2GFmOBz
▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
▶️ Get The Code
bit.ly/3sJpeV6
Great job John! I became a Codemy member especially to say 'thanks' for all that I've learned from your videos. Hopefully, other viewers will do the same. It's insanely cheap!
Thanks! I appreciate that!
I learned Django from you, John. You are the best!
Thanks!
Thanks for uploading again. Our teacher is back!
Happy to be back!
You Are the best. Number one teacher!
Thanks!
You are amazing men. Thanks for everything!!!
Glad you're enjoying it!
Happy to see you that you are back at your work 😆
Me too!
You're the best mate !!! 🤝
Thanks!
thank you very mon prof....tu es meilleur . i wait for another video
link to the playlist in the pinned comment with all the videos...no need to wait.
you are my hero!
Thanks!
thank u so much!!! amazing 🥰
Welcome!
Our legend teacher is back.
Yep!
Thanks for the video 👍🏻
welcome
Great!
thanks
Show de Bola
Python legend is back!!!
Thanks!
Love From India Sir🇮🇳
Thanks!
Thank you sir
Welcome!
You are awesome! Will you be able to show how to create user registration form/signup form page and how we connect to the user authentication?
of course
John, you had mentioned changing to a date picker and time picker for imputting date and time of events. Will you be doing that soon? Thanks!
Not sure..
after logged out, pressing back button in browser ,will redirect to home page, please do some videos about session handling. ❤
there is one issue with the logout:
even after logging out if we navigate back in the browser it sends us back again to the previous screen (which we should 't be able to see as we are logged out).
also, make a video on virtual environment and directories.
thanks...
Have many many videos on that already on the channel
@@Codemycom well. I will watch that must, thanks
Thank you the back button not working after logout with that application, my problem if I have multiple application in this case the back button returns to the previous page , what can I do
you can make your buttons point to whatever you want, in the normal way using django url tags
😀
:-p
Boss come back again.
Yep!
Hi bro. Can you tell me where I can download this blog project code?
Code is always linked in the pinned comment, as stated in each video. github.com/flatplanet/djangoblog
What are the requirements to run this project locally.
Just what is shown in the videos.
hey, could you update this tutorial? I did step by step and i get 405 error :(
It doesn't need updating, you got an error because you typed the code wrong somewhere.
How to expire session automatically if user is not active
Why? If they aren't active...
Sir I am very sad about your mother death, you try best for her but God knows that the last date of human. Feeling so bad sir
Thank you
please help it has been 2 days that i search for a solution for the user.is_authenticated it doesn't work for me it always returning false , even if i'm logged in
Then you likely aren't actually logged in. Check your login code.