Тёмный

Login and Logout - Django Wednesdays ECommerce 7 

Codemy.com
Подписаться 229 тыс.
Просмотров 10 тыс.
50% 1

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

Опубликовано:

 

30 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 45   
@Codemycom
@Codemycom 9 месяцев назад
▶ Watch Django Wednesdays Ecommerce Playlist ✅ Subscribe To My RU-vid 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
@TheLummen.
@TheLummen. Месяц назад
Today I learned how to spell success ! By the way thank you for including login, logout in your tutorials !
@Codemycom
@Codemycom Месяц назад
Ha, yep!
@cristobalvera7676
@cristobalvera7676 5 месяцев назад
Chanels like this is the reason cause I learned english lenguaje , Muchas gracias!
@Codemycom
@Codemycom 5 месяцев назад
Happy to hear that!
@technologybysrk8419
@technologybysrk8419 8 месяцев назад
Great video, I just finished Waiting for #8 Thank you
@Codemycom
@Codemycom 8 месяцев назад
Happy to hear it!
@ebenezeradedotun4197
@ebenezeradedotun4197 8 месяцев назад
Great content as always🎉
@Codemycom
@Codemycom 8 месяцев назад
Thanks!
@CreatorOfHumans
@CreatorOfHumans 3 месяца назад
Thanks, all work!
@Codemycom
@Codemycom 3 месяца назад
welcome!
@namdarcs
@namdarcs 9 месяцев назад
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?
@Codemycom
@Codemycom 8 месяцев назад
Not yet, we're building this as we go...
@njorogengotho880
@njorogengotho880 8 месяцев назад
Patiently waiting for tutorial #8
@Codemycom
@Codemycom 8 месяцев назад
They come out every Wednesday
@yohumano1863
@yohumano1863 5 дней назад
Muchas gracias, el tutorial me sirvió bastante
@Codemycom
@Codemycom 5 дней назад
Welcome
@ram_qr
@ram_qr Месяц назад
Thanks a lot!!!
@Codemycom
@Codemycom Месяц назад
welcome!
@deki90to
@deki90to 8 месяцев назад
Genius!
@Codemycom
@Codemycom 8 месяцев назад
Thanks!
@kelver3158
@kelver3158 4 месяца назад
Greate!!!!
@Codemycom
@Codemycom 4 месяца назад
Thanks!
@nandhanakb5785
@nandhanakb5785 8 месяцев назад
hy nice video man...thanks a lot.please upload the next video8.we are waiting
@Codemycom
@Codemycom 8 месяцев назад
These come out every Wednesday
@user-he3ud4yd4n
@user-he3ud4yd4n День назад
How can i handle a forgot password situation for the user
@NourFares-so7rr
@NourFares-so7rr 8 месяцев назад
👏👏
@mihuynh1825
@mihuynh1825 Месяц назад
thank for your video, btw, at 6:38, you used logic "user.is_authenticated", where is it from ?
@Codemycom
@Codemycom Месяц назад
That's a built in feature of Django.
@gopiedits825
@gopiedits825 Месяц назад
in the form's action attribute , vs code suggesting lowercase 'post' or it should be "POST"
@Codemycom
@Codemycom Месяц назад
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.
@sarrabettaieb5581
@sarrabettaieb5581 2 месяца назад
Great video , But i have a problem , messages appear on the admin section when i login or logout 😔
@Codemycom
@Codemycom 2 месяца назад
what did you do differently from the videos?
@38_jobinluckose50
@38_jobinluckose50 2 месяца назад
Same here😢
@sarrabettaieb5581
@sarrabettaieb5581 2 месяца назад
@@38_jobinluckose50 i added a bootstrap link in html and it works
@ic3dl4tte
@ic3dl4tte Месяц назад
samee
@sarrabettaieb5581
@sarrabettaieb5581 Месяц назад
@@ic3dl4tte You should add bootstrap link . I tried it and it works
@gauravmahawarmahawar9648
@gauravmahawarmahawar9648 Месяц назад
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
@Codemycom
@Codemycom Месяц назад
Solve it yourself lol rewatch the videos and follow them exactly and it will work. You did something wrong, I can't guess what.
@gauravmahawarmahawar9648
@gauravmahawarmahawar9648 Месяц назад
@@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
@peterhagerty7315
@peterhagerty7315 4 месяца назад
Why would my login button not work? When I click the button, nothing happens...
@Codemycom
@Codemycom 4 месяца назад
You left out something, probably on the HTML form.
@financebabaji
@financebabaji 8 месяцев назад
When you upload next video for this tutorial
@Codemycom
@Codemycom 8 месяцев назад
The series is called Django Wednesdays...so....