thanks, Chuck, you save my life, with this explanation
@williamfash35033 жыл бұрын
Thank you Chuck, your explanations are very detailed and comprehensive.
@timoteopolak3 жыл бұрын
Excelent! After a long time searching, I found the solution to a problem that I had in my approach to many to many.
@influensor2 жыл бұрын
You are the one I was looking for. thx, I am your fan now!
@sdscode Жыл бұрын
Well that's an important detail in Django Models, according to the documentationm, no Joint Table is required, only consider the ManyToManyField model type (that saves code and logic but is not standard I think). In pure SQL (Database First approach) the Joint table is definitively required, I think.
@seantilson34203 жыл бұрын
There are instances where certain property changes to a field do not get noticed by makemigrations. The easiest solution, since I didn't yet have anything in the database, was to comment it out, migrate, comment it in with the new setting and migrate. Stack overflow had some solutions to write a script by hand (which were not relevant to me just learning).
@hndoss4 жыл бұрын
This just saved my life.
@mkrtichhovhannisyan62443 жыл бұрын
When I add Author in ManyToManyField it gives me name error name Author is not defined. Any solutions for that?
@thales-maciel4 жыл бұрын
Django docs says we should put the ManyToManyField in one of our models only, but I wasn't able to find out why
@nelsonkerandi63244 жыл бұрын
Here is why I think Behind the scenes, Django creates an intermediary join table to represent the many-to-many relationship. By default, this table name is generated using the name of the many-to-many field and the name of the table for the model that contains it. Since some databases don’t support table names above a certain length, these table names will be automatically truncated and a uniqueness hash will be used, e.g. author_books_9cdf. You can manually provide the name of the join table using the db_table option. docs.djangoproject.com/en/3.1/ref/models/fields/#django.db.models.ManyToManyField
@abdusamadabdullakhanov5182 жыл бұрын
Dude that was clearly explained, I mean, content is great!!! i really appreciate your work and feel free with droppin' your pen, if you managed to take it back, thats okay😅😅😅. All in all thanks for comprehensive video
@manabean81453 жыл бұрын
Thank you.
@TheChronichalt Жыл бұрын
I think you have the 0..* explanation wrong, I'd like to be corrected if I'm wrong, but the 0..* means that a GENRE can exist without a BOOK, not that a BOOK can exist without a GENRE.
@dace9294 Жыл бұрын
Iam agree with you Did you find the correct idea?
@ghilesdjebara80664 жыл бұрын
thank you so much, very clear and short
@shubham84694 жыл бұрын
Beautiful
@bricegnanago4094 жыл бұрын
Thank you so much !
@goemedm36794 жыл бұрын
thank you !!
@dace9294 Жыл бұрын
I run this code with manyToMany and without manyToMany And the result was the same And i was able to see the result by django-exentions Django-exentions can generate graph models base on your models code