Django Ecommerce Website | Data Structure | Part 2

preview_player
Показать описание
Check out my Complete Django Course!

In this module, we will be about setting up our database/models.

Source code:

Follow me on Twitter for updates and more personalized content:

Time Stamps:

00:00 - Introduction
1:40 - Build Models
17:50 - Render Products
23:25 - Product ImageField()
33:35 - Render Cart data
42:40 - Cart Total's
50:25 - Checkout page data
Рекомендации по теме
Комментарии
Автор

00:00 - Introduction
1:40 - Build Models
17:50 - Render Products
23:25 - Product ImageField()
33:35 - Render Cart data
42:40 - Cart Total's
50:25 - Checkout page data

DennisIvy
Автор

Thanks man, it was very helpful. Also if someone is looking for an alternate way to handle no image case add this in your HTML template inside for loop

{% if product.image %}
<img class="thumbnail" src="{{product.image.url}}">
{% else %}
<img class="thumbnail" src="{% static 'images/placeholder.png' %}">
{% endif %}

abhinav-singh
Автор

Thanks man. Django it's been the only framework that really worked for me on the back-end; finding such a comprehensive and best-practice oriented guide it's a bless. Thanks a lot!

alinandrei
Автор

Thank u Dennis for this amazing tutorial, One suggestion instead of creating all the classes at once it would be even better to create one by one by rendering in templates so that it would be even easier for us to understand why we need this specific attribute as organization of models is super important.

doniyorabduvokhidov
Автор

52:52 you missed removing 2 from $2. 53.24, you noticed incomplete </p> but missed x22.
I am doing my project by watching your videos.
Thanks a ton.

SudarshanisedClick
Автор

Integrated content.
I wish you success, your explanation is the best compared to paid courses.
Really, thank you.

obadaalahdab
Автор

Definitely paying $12 for this. Totally worth it.

upcomng
Автор

Great job, if anyone has error for rendering image. Try do delete all products and do it again with image

ibrahimmohammed
Автор

Thank you very much, Dennis. This course is actually the best free ecommerce website building course ever!

eyeseyeseyes
Автор

Hi, for people still having the issue about User has no attribute customer, you have to do two things:
1- in admin page add a new customer (you as superuser)
1- add on Customer model in user object "related_name='customer"

You should not have this error anymore
hope it helps

smailchalal
Автор

Amazing video! I'm a beginner on Python and Django and this really helpful me, thanks a lot! regards from Argentina :)!

juliracing-
Автор

Thank you for your amazing work. I really did not understand where we did get orderitem_set in 45:32

zaursuleymanov
Автор

This ecommerce seris is best.. i have learned so many thigs from this..thanks buddy

sharab
Автор

I needed some course to be done in this quarantine thanks for this amazing series

ShahrukhKhan-qiqt
Автор

This is brilliant Dennis. You're really helping out.
Observation at 53:24, we should remove the hardcoded x2 value there

sharhanalhassan
Автор

I already put the decorator property in image for class Product but still The 'image' attribute has no file associated with it.

self-taughtprogrammer
Автор

I am really grateful for this tutorial. I learnt alot from this.

malayparmar
Автор

@53:30 line 62 the quantity will be x{{item.quantity}}. Since you had "2" before it the checkout page showed 22 headphones and 21 Mount of Olive books.

yasazaheen
Автор

Cannot resolve keyword 'customer' into field. Choices are: Customer, Customer_id, complete, date_ordered, id, orderitem, shippingaddress, transaction_id. I am stuck here whenever I am logged in admin, I can't go to cart. Please help with the error. Thank you

vicent_ruts
Автор

when I am using {{order.get_cart_item}} in cart.html . I am getting error called : 'ModelBase' object is not iterable. Please help me

animechoicebox