Login and Logout - Django Wednesdays ECommerce 7
ฝัง
- เผยแพร่เมื่อ 27 มิ.ย. 2024
- In this video I'll show you how to set up the system to login and logout users of the site.
We'll want people to be able to have their own accounts that they can log into.
Eventually those accounts will keep track of orders and things like that...
#django #codemy #JohnElder
Timecodes
0:00 - Introduction
1:24 - Create Login/Logout URLs
2:25 - Create Login Page
3:21 - Create Login/Logout Views
4:04 - Import Django Authenticate
5:30 - Add Links To Navbar
6:14 - Show Links if Logged In/Out
7:35 - Add Form to Login Page
10:40 - Add Form Method and Action
11:07 - Add CSRF Token
11:46 - Logout View Code
12:42 - Login View Code
17:00 - Fix Success Misspelling
17:15 - Add Messages To Base.html
18:47 - Test It All Out!
19:39 - Conclusion
▶ Watch Django Wednesdays Ecommerce Playlist ✅ Subscribe To My TH-cam Channel:
bit.ly/3OBQJfN 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 50% off with coupon code: youtube50 bit.ly/2VC9WUN
▶ Get The Code
bit.ly/47xAhWJ
Today I learned how to spell success !
By the way thank you for including login, logout in your tutorials !
Ha, yep!
Chanels like this is the reason cause I learned english lenguaje , Muchas gracias!
Happy to hear that!
Great video, I just finished
Waiting for #8
Thank you
Happy to hear it!
Great content as always🎉
Thanks!
Thanks, all work!
welcome!
Patiently waiting for tutorial #8
They come out every Wednesday
Muchas gracias, el tutorial me sirvió bastante
Welcome
Thanks a lot!!!
welcome!
Im finally caught up! Cant wait for the next video release... John is the full training for ecom available for purchase on the site at all?
Not yet, we're building this as we go...
hy nice video man...thanks a lot.please upload the next video8.we are waiting
These come out every Wednesday
👏👏
Genius!
Thanks!
Greate!!!!
Thanks!
in the form's action attribute , vs code suggesting lowercase 'post' or it should be "POST"
It should be as written in the video, obviously that worked. Never take vs code suggestions when you don't know why it's suggesting it.
Great video ,
But i have a problem , messages appear on the admin section when i login or logout 😔
what did you do differently from the videos?
Same here😢
@@38_jobinluckose50 i added a bootstrap link in html and it works
samee
@@ic3dl4tte You should add bootstrap link . I tried it and it works
thank for your video, btw, at 6:38, you used logic "user.is_authenticated", where is it from ?
That's a built in feature of Django.
login working only for superuser that was created from django-admin createsuperuser command but it does not work for another users
please solve this problem
Solve it yourself lol rewatch the videos and follow them exactly and it will work. You did something wrong, I can't guess what.
@@Codemycom Thanks for replying but it gives me error of password similar to first and last name thanks again can you please create a video on how student can deploy django project on AWS free
Why would my login button not work? When I click the button, nothing happens...
You left out something, probably on the HTML form.
When you upload next video for this tutorial
The series is called Django Wednesdays...so....