How to Create Useful Many to Many Relationships in Django (Django Tutorial) | Part 56

preview_player
Показать описание
Enjoyed my video? Leave a like!
Рекомендации по теме
Комментарии
Автор

Thank you very much, very helpful. Because I did not know how to get the length of the manytomany field, by your video, I figure out it is so easy, just use all().

tiny-geo
Автор

@Max Goodridge, Thank you so much for the series, its probably one of the best out there.
I just have a question, @3:25 What does friend, created = means ?? how can you assign 2 variable the same value ? if thats what its doing. Can you please explain to me or give me a reference .
thanks.

blackdedo
Автор

Hi, Max
This is an excellent tutorial.
If a newly registered user logged in and visited the home page, it showed an error by saying 'Friend matching query does not exist'. The home page should show all the existing users in Other Users while no users in Friends for a new user. Could you please kindly tell me how to fix this problem?
Many thanks!

chundeliu
Автор

How can i expand this ? I want user to get an invite for friendship and let him decide either accept or decline. Can you help me ?

ahmetsercanyektas
Автор

Wow, thanks again, I was waiting for this. Thanks (again xD)

marc_joan
Автор

TypeError: __init__() missing 1 required positional argument: 'on_delete'
If this error is shown

rewrite: current_user = models.ForeignKey(User, related_name='owner', null=True)
to: current_user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='owner', null=True)

in models.py

georgikjoseph
Автор

Wow this one confused me. Gonna go read about basics of databases before i look at this again. So annoying i dont get it though, quite confusing.

arsenalacid
Автор

I did all this but I still have no friends. feelsbadman

lukeslab
visit shbcf.ru