Database Relationships | One To Many & Many to Many  | Django (3.0)  Crash Course Tutorials (pt 6)

Database Relationships | One To Many & Many to Many | Django (3.0) Crash Course Tutorials (pt 6)

Dennis Ivy

4 года назад

223,501 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Donald Trump 2024
Donald Trump 2024 - 29.09.2023 16:00

I have one question following the link between Product and Order : Why don't we use ManyToManyField instead of One To many ? because in one order we can have many products and one product can appear in many orders .

Ответить
Brian Emile
Brian Emile - 24.07.2023 05:59

where can i get the starting from

Ответить
Ursoo The Soul
Ursoo The Soul - 24.06.2023 13:26

I'm getting an issue while adding data to order when i choose customer name it says
Order object has no attribute name
Seems like the foreign key is noy connecting anyone can help?

Ответить
Diyorbek Jumanov
Diyorbek Jumanov - 02.04.2023 20:42

Boom

Ответить
Diyorbek Jumanov
Diyorbek Jumanov - 02.04.2023 20:42

Boom

Ответить
Tehreem Akhtar
Tehreem Akhtar - 27.02.2023 16:25

Don't you think that relationship between Orders and Products should be many to many because normally one order can contain multiple products. I'm a lil confused just because of this.

Ответить
Sun Phanith VataNak E1
Sun Phanith VataNak E1 - 18.01.2023 13:24

So How can we get data from Tage table ? like to display in home page

Ответить
H Sharma
H Sharma - 01.01.2023 16:15

Source code page is not working.

Ответить
RSSV PRASAD
RSSV PRASAD - 17.10.2022 20:42

why to create a new customer user name and email? how can I directly import already existing users from table and display on page model customers!

Ответить
Svetlio Doychinov
Svetlio Doychinov - 09.10.2022 02:08

Great video coming from FastAPI where you need to be doing more sql than python sometimes I am very surprised how simple the relations are in Django. It’s really cool.

Ответить
Johnson Vaughn
Johnson Vaughn - 22.09.2022 13:50

How should I make more user friendly to many to many field in admin panel? TabularInline is not good when too many values in many to many field.What should I use?

Ответить
Bishal Adhikari
Bishal Adhikari - 19.09.2022 16:00

why product and order have one to many relationship ?

Ответить
Shakir Ahmed
Shakir Ahmed - 10.08.2022 11:26

Hi Dennis, I am getting an error on creating the product:
OperationalError at /admin/accounts/product/add/
no such table: accounts_product_tags

I know it is probably late to ask, would appreciate it if you could help though

Ответить
Prasanna Deshpande
Prasanna Deshpande - 03.08.2022 20:59

Very good tutorial. Certainly deserves more subscribers and likes.

Ответить
abin anto
abin anto - 01.07.2022 17:51

what if there are 1000 customers and we need to add an order . how to select the customer

Ответить
Vijay Kumar
Vijay Kumar - 06.06.2022 01:46

Hi , do you have video explaining foreign key relations among tables of different databases or any hint on how to achieve that?

Ответить
Glenn Potter
Glenn Potter - 22.05.2022 19:29

Wow, great teacher!

Ответить
shilash M
shilash M - 05.05.2022 05:08

Dennis, Do we use django database in production env or we use, database like Mysql in three tier arch with separate server. Can you say what is difference between in build django database and database servers

Ответить
Yogesh
Yogesh - 12.04.2022 13:49

manytomany field is used when we need to connect an object with many objects of another table,
Product can have multiple Tag like
ice cream is product and summer,food are Tags.

Ответить