Комментарии:
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 .
Ответитьwhere can i get the starting from
Ответить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?
Boom
ОтветитьBoom
Ответить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.
ОтветитьSo How can we get data from Tage table ? like to display in home page
ОтветитьSource code page is not working.
Ответить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!
Ответить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.
Ответить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?
Ответитьwhy product and order have one to many relationship ?
Ответить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
Very good tutorial. Certainly deserves more subscribers and likes.
Ответитьwhat if there are 1000 customers and we need to add an order . how to select the customer
ОтветитьHi , do you have video explaining foreign key relations among tables of different databases or any hint on how to achieve that?
ОтветитьWow, great teacher!
Ответить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
Ответить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.