Cart Persistence on Logout - Django Wednesdays ECommerce 27

  Рет қаралды 3,886

Codemy.com

Codemy.com

Күн бұрын

Пікірлер: 32
@Codemycom
@Codemycom 10 ай бұрын
▶ Watch Django Wednesdays Ecommerce Playlist ✅ Subscribe To My KZbin 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
@CarlosESGomes
@CarlosESGomes 2 ай бұрын
Hi John! Great serie! One point that I did was create a new function in Cart class (cart_persistence(self)) that has all the code that you copied and pasted. I think that will help future maintenance to keep all the repeated code in one point and call it from db_add, add, delete and update functions.
@TheLummen.
@TheLummen. 10 ай бұрын
I love this videos. Thank you John !
@Codemycom
@Codemycom 10 ай бұрын
Welcome!
@kamelshaaban5238
@kamelshaaban5238 7 ай бұрын
Loving your Django e-commerce series! The way you break down complex concepts into easy-to-follow steps is incredibly helpful. Your videos have been a huge support for my own projects. Keep up the great work! Quick question: how can I allow users to search by category? Thanks for all you do!👍
@Codemycom
@Codemycom 7 ай бұрын
Glad you’re enjoying them! There some search videos already…you can check the django docs for query’s to pinpoint categories instead of what we did in the videos…you just have to search the categories model etc
@giorgi_mtsituri
@giorgi_mtsituri 10 ай бұрын
so far, so good, best series, I learnt so much from that videos , Thanks John, I am stil "Ecommerce 24" , I'll soon catch up🥰
@Codemycom
@Codemycom 10 ай бұрын
Glad you're enjoying them!
@AvazbekHazratov-t9j
@AvazbekHazratov-t9j 10 ай бұрын
This is for video.Thank you John
@Codemycom
@Codemycom 10 ай бұрын
You are very welcome
@GyaneshPinabakala
@GyaneshPinabakala 10 ай бұрын
Hi I have been following your sessions. They are great, but I have a query related to cart app. Hope you can answer my query. Query: What happens when the user has added some items to cart and not logged out of the session in the current device. But now, he logs in from another device where there was no session cookies saved ? A) Are the items inside the cart now lost as this is a new session and as the user did not logout, the DB save is not performed? B) Does the save to DB action is triggered when user performs a new login without logging off in older session? And why don't we save the details directly to DB during the Add Cart button action itself instead of saving them in session cookie?
@Codemycom
@Codemycom 10 ай бұрын
It's not 'logging out' that saves the cart to the database. When they're logged in, anytime they add something to the cart it gets saved to the database as well as the session, as shown in the video...
@GyaneshPinabakala
@GyaneshPinabakala 10 ай бұрын
@@Codemycom Thanks for the clarification. I think I missunderstood the logic. I will go throught it once again. I Appreciate your effort.
@ahmedbenmohamed0506
@ahmedbenmohamed0506 10 ай бұрын
goood Sir
@Codemycom
@Codemycom 10 ай бұрын
thanks
@nasirgaayte2695
@nasirgaayte2695 10 ай бұрын
da 1 in da game
@Codemycom
@Codemycom 10 ай бұрын
Ha thanks!
@sma1gdz
@sma1gdz 10 ай бұрын
💙💙💙💚💚💚
@Codemycom
@Codemycom 10 ай бұрын
🙂
@Faybmi
@Faybmi 10 ай бұрын
I WANNA MORE, MORE, MORE!!!!!!!!
@Codemycom
@Codemycom 10 ай бұрын
Lucky for you I post these videos every week.
@namdarcs
@namdarcs 10 ай бұрын
Thanks John for the video! I'm having an interesting bug where I can see the old cart values for all users except my "admin" in the dashboard.. IE: If I login as admin and select items in to cart, I dont see any values in old cart for user profile of admin... Just to clarify I do see it for all my other users I sign into and put items in the cart... Not sure where I should be looking to fix this... Let me know Thanks :)
@namdarcs
@namdarcs 10 ай бұрын
I figured it out... my admin was still in "default" I did not add any other profile options to it like I did the others... now it is updating... This was giving users the option to add details a few videos back... I just never did it to my admin profile... Once I updated the admin profile with user details etc etc it worked... Sorry and Thanks for the video !
@Codemycom
@Codemycom 10 ай бұрын
glad you got it sorted out@@namdarcs
@slliks4
@slliks4 10 ай бұрын
Can you convert it straight to fields by using RE to break it down
@Codemycom
@Codemycom 10 ай бұрын
Don't know what you mean, but sure you can always do anything you want with coding..
@youcefboutiche9496
@youcefboutiche9496 10 ай бұрын
Hello, thank you so much for this videos you are a great guy man, i like to looking at you coding, i have a quation for how to manage the checkout. we start by don't adding the e-payment method we suppose to the payement is on delevery can you oriente me or help me to how can i manage this please. Thanks a lot brother
@Codemycom
@Codemycom 10 ай бұрын
We'll discuss checkout when we get to that part.
@abolz6120
@abolz6120 10 ай бұрын
please teach how to create email verification
@Codemycom
@Codemycom 10 ай бұрын
we may get into that
@GyaneshPinabakala
@GyaneshPinabakala 10 ай бұрын
Hi
@Codemycom
@Codemycom 10 ай бұрын
hi
Login Cart Persistence - Django Wednesdays ECommerce 28
17:20
Codemy.com
Рет қаралды 3,3 М.
Create Our ECommerce Models - Django Wednesdays ECommerce #2
23:12
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 178 М.
User Profile Page - Django Wednesdays ECommerce 25
20:23
Codemy.com
Рет қаралды 7 М.
Build AI Agent the Right Way with n8n: Postgres Chat Memory & Supabase (1/2)
13:30
Choosing Your Language: Python or Mojo?
14:33
ArjanCodes
Рет қаралды 118 М.
Attach Order Items - Django Wednesdays ECommerce 36
16:50
Codemy.com
Рет қаралды 2,6 М.
Customer Order Models - Django Wednesdays ECommerce 31
15:23
Codemy.com
Рет қаралды 3,9 М.
The Correct Way to Run Database Migrations in EF Core
19:51
Nick Chapsas
Рет қаралды 36 М.
Login and Logout - Django Wednesdays ECommerce 7
20:33
Codemy.com
Рет қаралды 17 М.
SQLAlchemy: The BEST SQL Database Library in Python
16:39
ArjanCodes
Рет қаралды 90 М.
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН