A Simple Many-To-Many Example in Django

  Рет қаралды 14,379

Chuck Severance

Chuck Severance

Күн бұрын

Пікірлер: 22
@FahmiEshaq
@FahmiEshaq 4 жыл бұрын
Well explained. This video deserves more views
@elhalmihamza28
@elhalmihamza28 Жыл бұрын
thanks, Chuck, you save my life, with this explanation
@williamfash3503
@williamfash3503 3 жыл бұрын
Thank you Chuck, your explanations are very detailed and comprehensive.
@timoteopolak
@timoteopolak 3 жыл бұрын
Excelent! After a long time searching, I found the solution to a problem that I had in my approach to many to many.
@influensor
@influensor 2 жыл бұрын
You are the one I was looking for. thx, I am your fan now!
@sdscode
@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.
@seantilson3420
@seantilson3420 3 жыл бұрын
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).
@hndoss
@hndoss 4 жыл бұрын
This just saved my life.
@mkrtichhovhannisyan6244
@mkrtichhovhannisyan6244 3 жыл бұрын
When I add Author in ManyToManyField it gives me name error name Author is not defined. Any solutions for that?
@thales-maciel
@thales-maciel 4 жыл бұрын
Django docs says we should put the ManyToManyField in one of our models only, but I wasn't able to find out why
@nelsonkerandi6324
@nelsonkerandi6324 4 жыл бұрын
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
@abdusamadabdullakhanov518
@abdusamadabdullakhanov518 2 жыл бұрын
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
@manabean8145
@manabean8145 3 жыл бұрын
Thank you.
@TheChronichalt
@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
@dace9294 Жыл бұрын
Iam agree with you Did you find the correct idea?
@ghilesdjebara8066
@ghilesdjebara8066 4 жыл бұрын
thank you so much, very clear and short
@shubham8469
@shubham8469 4 жыл бұрын
Beautiful
@bricegnanago409
@bricegnanago409 4 жыл бұрын
Thank you so much !
@goemedm3679
@goemedm3679 4 жыл бұрын
thank you !!
@dace9294
@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
@billubaziger
@billubaziger 4 жыл бұрын
thanx man
@malikbrahimi7504
@malikbrahimi7504 4 жыл бұрын
Can I email you a complex modeling question?
Understanding Django Generic Views
16:29
Chuck Severance
Рет қаралды 14 М.
From Python to C - The Rosetta Stone Lecture
41:22
Chuck Severance
Рет қаралды 6 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Using Sessions in Django
12:34
Chuck Severance
Рет қаралды 24 М.
Building a Django Batch Script to Load Data from CSV
16:51
Chuck Severance
Рет қаралды 16 М.
Introduction to Django Models
19:59
Chuck Severance
Рет қаралды 15 М.
Many-to-Many Relationships - The Whiteboard #12
13:24
SQLBI
Рет қаралды 22 М.
The Django Template Language (DTL)
11:00
Chuck Severance
Рет қаралды 7 М.
Adding Extra Fields On Many-To-Many Relationships in Django
17:45
Pretty Printed
Рет қаралды 43 М.
Django Models.py - Django Databases #2
20:50
Codemy.com
Рет қаралды 54 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН