I'm italian and i already watch 2 courses in italian language. But just now with your course i start understand better django! You're really the best... thanks for all!
Great Video Thnx a lot for those who are super confused in the relations and then the code for relationships; I recommend watching this video again(and again) till your minds actually recognizes the pattern( you may take a break if you don't get it) BEST OF LUCK
Dennis, you make the best videos on Django. I am an engineer from South Africa. You are the most relatable coding youtuber to me. Keep making great content. It helps more than you know!!!
Your Visual representation of the relationship help us understand clearly, how i wish there are somethings like this in the Django documentation, it make things very easy! Thanks Dennis!
I did relational database for quite some time. Glad you corrected that Tags should be on Product and not on Order. It bothered me but I kept watching anyway cos I'm clueless with Django. Great series!
Really good content Dennis. Can you make a future mini series on understanding model relationships in Django and at the same time explaining the concept of making good ER diagrams for any website project. There are not many videos out there covering these concepts in depth and you explain extremely well. It would be really helpful if you would consider making a series like that in the near future
i never really understood the intermediary table in the ManyToMany relationship until now, Thanks a lot for giving such a clear and easy to understand explanation!
@@DennisIvy First of all, thanks for such amazing lectures you are taking. How can I load data in my UI and apply slicers/filters on the data from .csv files in the dashboard. Secondly, how can I take user input on the dashboard and run an ML model in the background and refresh the dashboard. Any link for tutorials would be really great.
Some tutorials are goo, some are so good and well explained which is also easy to follow and then comes your videos! Perfect tutorials to learn from! Thanks a lot
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.
Hi Dennis, I love your way of Explanation. could you please also do a video about how to add foreignkey relationship in modelforms and render both in single template? Where foreignkey value can be choosen automatically while filling the form
Denis Ivy , at 11:06, you mention changing the tags selection to a multi-select checkbox. I can't find where you do that in this video, or the next. Where/how do you change that? Also how could I change a dropdown option to radio buttons. BTW, thank you for awesome content!
Thanks for the video. Very helpful! Does anybody know why the multiselect option is provided only on one side of the model in the admin panel if Many-To-Many is used? Theoretically it should be shown on both sides.
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.
Thanks for the excellent content. Though on 2:00 I think one product (ball) can have both Sports Tag and Summer Tag but then BBQ Grill can't have summer as a tag. It is one to many not one to one. Am I right?
Hey I understand the concept of many to many and one to many, the way you implement it I also do the same but I am unable to understand how many to many relationship data will we stored because we have not created any intermediate table and also I am unable to find it in my database.
Can you please explain how to join tables (inner join) the joining tables has no foreign key relationships in django orm and once join is happen how to serialize the data to create API?
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
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?
I tried to form a primary key that would contain two fields. If I understood right the info I found from web, Django does not support such feature and it has been so for a long time. What could be so difficult/overwhelming to prevent to implement a common feature like that?
This may not be quite clear but i hope you understand: I have created my class models with the relationships addressed in this video.But every class requires the foreign key class to be predefined above it,making the whole process an infinite loop.How do i tackle this?
Hey can anyone help? I'm creating a project similar to his. But instead of tags, I'm adding products to my order. which I can get working like he has but I want to add a quantity options as well. Is this possible??
soooo good.... nice. so if the Customer just cancel a ORDER that he or she made. the Order still on are database, as a Canceled ordered status, right??? sorry for my ENGLISH. but great Job.
The course is really great, but I have a question. Why we put the Tags class above the Product class? We can not just write it anywhere and access it? I mean why we need to have the order(not the Order class) in the code file? Is it just a preference from you? or it will not work otherwise?
Hey Dennis, I understand the logic behind one to many relationship for the customer but what if we have a large number of customers? don't you think a drop down feature would be slightly awkward?
@Dennis why i get error while opening source code ..error like this Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail
@Dennis Ivy.... Thanks for your journey of videos . It helping a lot. One more thing here you are adding selecting the Customer manually cause you are admin. But suppose when a customer orders a thing then in the order form can you plz show me way to select the user automatically to "Current User" where i have choices of users. thanks
It can be like that, but it is mandatory in Relational DBMS (database management systems) to simplify all many-to-many relations to one-to-many. However, Django seems to like simplifying things too much and not requiring this.
For whoever is following along with this video: Just in case you get stuck at the point where you can see the Tag section on the site go to admin.py file in your IDE and add it there so that it registers on the site just like he added those of Customer, Product and Order sections in the previous video on this playlist.
Hello Dennis,i migrate my datebase to a postgres database and when i try to agregate a product it show me a error name error de sintaxis en o cerca de ON
Very impressive explanation. But why don't you use cascade on delete so that the order made by a certain customer is also deleted when he is deleted to avoid orphaned entries
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?
If you delete a product, it will be null in the order. So it will be impossible to have a order history for a customer. And if you change a price of a product, then the order would not show the price when ordering. There must be a better way to do this?
i am implementing QA forum in which i have a doubt suppose user ask a question and that question can be associated with many tags then how to implement its db design.please help@dennis Ivy
7:19 I don't get that relationship, the order table is just keeping the ID of product what if the user places an order and then admin updates the similar product?
The product ID remains the same. If the name of the product or any of the properties are changed, they will be changed everywhere. There will be problems with that relation only when you delete the product. In real life you create a restriction so you can only hide the product from showing on the website or send it to a deleted database, but never delete it from the actual database.
Keep a history of the product and the date that the product definition changes. That way can look back over time and see what the product was and warranty etc. A similar product is not the same product, so would be a new entry in the database.
1. Why are the date_created fields not showing up in the Admin ? 2. Would be nice to have sqlite3 create Order Numbers sequentially automatically, and display.
I love this playlist and you really great at explaining the basics too! I had one question how does Django only ask for customer name specifically in order model like it access name column only what if we want to access another column from customer in order model?
@Dennis Ivy: First of all, thanks for such amazing lectures you are taking. How can I load data in my UI and apply slicers/filters on the data from .csv files in the dashboard. Secondly, how can I take user input on the dashboard and run an ML model in the background and refresh the dashboard. Any link for tutorials would be really great.
Hii How can i get the Inherited foreginkey model field in second filed. #rough example Mode1: Name, phone num place etc fields Model: Name:foreginkey (Model1) Here i want to get model 1 num, place fields also how can u do that .@Dennies lvy
I don't get why products and orders don't have a ManyToMany relationship. A product could be in a relationship with many orders (as in, was ordered multiples times), on the other hand, an Order could have multiple products in it, and so multiple relationships ?
Don't forget to check out my Complete Django course! dub.sh/NvGboTI
I'm italian and i already watch 2 courses in italian language. But just now with your course i start understand better django! You're really the best... thanks for all!
The principle was explained much better then most tutorials that are floating around. It`s structured and reproducible. +1 to your channel! Cheers!
I appreciate that Georgi :)
I took many tutorials before this tutorial I have never seen like this one thanks million times dennis ivy
Great Video Thnx a lot
for those who are super confused in the relations and then the code for relationships; I recommend watching this video again(and again) till your minds actually recognizes the pattern( you may take a break if you don't get it)
BEST OF LUCK
Dennis, you make the best videos on Django. I am an engineer from South Africa. You are the most relatable coding youtuber to me. Keep making great content. It helps more than you know!!!
Your Visual representation of the relationship help us understand clearly, how i wish there are somethings like this in the Django documentation, it make things very easy! Thanks Dennis!
I'm half way, but just need to say that this tutorial is way to great to be free... Premium content, without question!
many thanks to Dennis!! this channel is really beginner friendly
I did relational database for quite some time. Glad you corrected that Tags should be on Product and not on Order. It bothered me but I kept watching anyway cos I'm clueless with Django. Great series!
I finished an entire udemy course and made two project tutorials on it but I didn't understand this concept until this video and project. Thanks mate!
Best Django series I have ever seen 😍🔥super easy to understand💯
Hey Dude, Thanks for the video. Its helping me spin my own Ticketing System with DRF and PSU! 20$/mo back into my business's pocket!
Very good tutorial. Certainly deserves more subscribers and likes.
It's just awesome...
I referred a lot videos for django. .but your series is awesome..no comparison 🙇🙇🙇🙇
Really good content Dennis. Can you make a future mini series on understanding model relationships in Django and at the same time explaining the concept of making good ER diagrams for any website project. There are not many videos out there covering these concepts
in depth and you explain extremely well. It would be really helpful if you would consider making a series like that in the near future
Greatest videos about Django I've ever seen. Super Dennis.
i never really understood the intermediary table in the ManyToMany relationship until now, Thanks a lot for giving such a clear and easy to understand explanation!
Thanks!
Your free explanations are the best.
Keep it like this
excellent explanations, keep uploading, love from India
+
You are the best Teacher. Thanks for creating such videos.
This is super helpful I'm going to subscribe just because of this video.
So glad you found it helpful! I didn’t know if the drawings would make it more confusing but they seem to be helping :)
@@DennisIvy drawing did help us infact i understood that before building a long project, make a diagram .Thank you loving the course:-)
@@DennisIvy First of all, thanks for such amazing lectures you are taking.
How can I load data in my UI and apply slicers/filters on the data from .csv files in the dashboard. Secondly, how can I take user input on the dashboard and run an ML model in the background and refresh the dashboard. Any link for tutorials would be really great.
This guy is now my go-to expect on most topics in Django. Dennis Ivy += 1 sub.
Great explanations man. I've seen your in CodingPhase but never visited your channel. Now I'm a subscriber eheh.
You've put in lot of hard work on this
Appreciation from India
Excellent Explanations ! The first thing I do before watching your video is to like it ❤
Haha really appreciate the support! Glad these videos are so helpful :)
please keep uploading awesome videos with great concept. thank you
Thanks for this content man. The quality is awesome
Thanks Dennis, you saved me £30,000 from University. I really appreciated.
Some tutorials are goo, some are so good and well explained which is also easy to follow and then comes your videos! Perfect tutorials to learn from! Thanks a lot
really helpful. The diagrams u draw and how you explain are rally helpful. thank you
I'm really glad those helped! I thought it might be distracting putting them in there so I'm glad they are working :)
Thanks! Hello from Kazakhstan!
I really appriciate your content. I have been stuck in this for a long time. Thanks Again✌️
Everything in this tutorial is awesome ! Your explanations are very good too. Thank you
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.
Dennis, thank you for this useful tutorial! Easy to follow, well done!
Loud and clear, thanks mate !
You're a great teacher bro
Thanks a ton man, you made it so simple to understand
@12:15 Wait a minute, we don't have to makemigrations & migrate after changing the codes in models.py?
Hi Dennis, I love your way of Explanation. could you please also do a video about how to add foreignkey relationship in modelforms and render both in single template? Where foreignkey value can be choosen automatically while filling the form
Dennis at 11:11 you mention that you would be change the ManyToManyField to a checkbox in the admin. Did you ever get to that?
Denis Ivy , at 11:06, you mention changing the tags selection to a multi-select checkbox. I can't find where you do that in this video, or the next. Where/how do you change that? Also how could I change a dropdown option to radio buttons. BTW, thank you for awesome content!
I'm confused as to why you had to run migrate at 8:44 but not at 12:11, even though you made a change to the models.py file?
I just watched this and am amazed. Thanks
Thanks for the video. Very helpful! Does anybody know why the multiselect option is provided only on one side of the model in the admin panel if Many-To-Many is used? Theoretically it should be shown on both sides.
13:36 how can we change order name from 'Order object'
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.
Awesome as always bro
Thanks for the excellent content. Though on 2:00 I think one product (ball) can have both Sports Tag and Summer Tag but then BBQ Grill can't have summer as a tag. It is one to many not one to one. Am I right?
Wow, great teacher!
From Morocco cheers mate.
thank you sir really great explanation with good example
Good morning , please is it possible to implement this many to many relationship and one to many relationship using mysql as my database
Hi , do you have video explaining foreign key relations among tables of different databases or any hint on how to achieve that?
keep going amazing video sir thanks alot from somalia
five times i saw it is awesome
Instead of have choices via a dropdown, is it possible to have checkboxes and allow multiple options to be chosen?
Hey I understand the concept of many to many and one to many, the way you implement it I also do the same but I am unable to understand how many to many relationship data will we stored because we have not created any intermediate table and also I am unable to find it in my database.
Can you please explain how to join tables (inner join) the joining tables has no foreign key relationships in django orm and once join is happen how to serialize the data to create API?
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
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?
Can you do a follow up tutorial to this video explaining how to create a Model Form from the Order model?
Thank you Denis God bless you
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!
I tried to form a primary key that would contain two fields. If I understood right the info I found from web, Django does not support such feature and it has been so for a long time. What could be so difficult/overwhelming to prevent to implement a common feature like that?
This may not be quite clear but i hope you understand:
I have created my class models with the relationships addressed in this video.But every class requires the foreign key class to be predefined above it,making the whole process an infinite loop.How do i tackle this?
When did you load the models.py? Not in this course, should we imported into this course from another?
Hey can anyone help? I'm creating a project similar to his. But instead of tags, I'm adding products to my order. which I can get working like he has but I want to add a quantity options as well. Is this possible??
soooo good.... nice. so if the Customer just cancel a ORDER that he or she made. the Order still on are database, as a Canceled ordered status, right??? sorry for my ENGLISH. but great Job.
The course is really great, but I have a question. Why we put the Tags class above the Product class? We can not just write it anywhere and access it? I mean why we need to have the order(not the Order class) in the code file? Is it just a preference from you? or it will not work otherwise?
Hey Dennis, I understand the logic behind one to many relationship for the customer but what if we have a large number of customers? don't you think a drop down feature would be slightly awkward?
that's just the default representations from admin-django if u want to search and get more out of field I thnk using the database in more helpful
what if there are 1000 customers and we need to add an order . how to select the customer
Whenever I try to add a foreign key, it displays this error: 'Cannot add or update a child row: a foreign key constraint fails.Can you please help me?
i had a doubt. can the orders be entered via the form given to the user too?
instead of manually entering them in the db
Suggestion: press F7 and DOS window will display all the commands you entered previously
very helpful bro!
@Dennis why i get error while opening source code ..error like this
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
Please upload one video daily. spread the knowledge. thank you
Uploading two right now :) had to reshoot yesterday’s because I didn’t like the way it turned out.
@@DennisIvy thank you.
So How can we get data from Tage table ? like to display in home page
@Dennis Ivy.... Thanks for your journey of videos . It helping a lot. One more thing here you are adding selecting the Customer manually cause you are admin. But suppose when a customer orders a thing then in the order form can you plz show me way to select the user automatically to "Current User" where i have choices of users. thanks
Great explanation, thank you!
Hello Dennis,
In fact, on each order buỷer can buy some products.so I used: product = models.ManyToManyField(Product). is it Ok ?
I think the same. An order could have many products.
It can be like that, but it is mandatory in Relational DBMS (database management systems) to simplify all many-to-many relations to one-to-many. However, Django seems to like simplifying things too much and not requiring this.
For whoever is following along with this video: Just in case you get stuck at the point where you can see the Tag section on the site go to admin.py file in your IDE and add it there so that it registers on the site just like he added those of Customer, Product and Order sections in the previous video on this playlist.
Was just looking for this thanks pal
Hello Dennis,i migrate my datebase to a postgres database and when i try to agregate a product it show me a error name error de sintaxis en o cerca de ON
Very impressive explanation. But why don't you use cascade on delete so that the order made by a certain customer is also deleted when he is deleted to avoid orphaned entries
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?
If you delete a product, it will be null in the order. So it will be impossible to have a order history for a customer. And if you change a price of a product, then the order would not show the price when ordering. There must be a better way to do this?
i am implementing QA forum in which i have a doubt suppose user ask a question and that question can be associated with many tags then how to implement its db design.please help@dennis Ivy
7:19
I don't get that relationship, the order table is just keeping the ID of product what if the user places an order and then admin updates the similar product?
The product ID remains the same. If the name of the product or any of the properties are changed, they will be changed everywhere. There will be problems with that relation only when you delete the product. In real life you create a restriction so you can only hide the product from showing on the website or send it to a deleted database, but never delete it from the actual database.
Keep a history of the product and the date that the product definition changes. That way can look back over time and see what the product was and warranty etc.
A similar product is not the same product, so would be a new entry in the database.
Dennis, does the position of the Tags class matter? You changed it's position
yes it does matter, it should exist before we mention it in any other class
how to override from multi select option to multi checkbox
extension to color syntax in django?
1. Why are the date_created fields not showing up in the Admin ?
2. Would be nice to have sqlite3 create Order Numbers sequentially automatically, and display.
I love this playlist and you really great at explaining the basics too!
I had one question how does Django only ask for customer name specifically in order model like it access name column only what if we want to access another column from customer in order model?
Iam kind of taken up by javascript iisssh but I will catch up with series keep up the nice work bro
JavaScript is a blast! Enhances your capabilities with Django a tone too. Thanks for your constant support :)
@Dennis Ivy: First of all, thanks for such amazing lectures you are taking.
How can I load data in my UI and apply slicers/filters on the data from .csv files in the dashboard. Secondly, how can I take user input on the dashboard and run an ML model in the background and refresh the dashboard. Any link for tutorials would be really great.
Excellent course
11/07/2020
Hii
How can i get the Inherited foreginkey model field in second filed.
#rough example
Mode1:
Name, phone num place etc fields
Model:
Name:foreginkey (Model1)
Here i want to get model 1 num, place fields also how can u do that .@Dennies lvy
I don't get why products and orders don't have a ManyToMany relationship. A product could be in a relationship with many orders (as in, was ordered multiples times), on the other hand, an Order could have multiple products in it, and so multiple relationships ?
what if the customer was A user in the project's database?