Learn Django | Social Network project in Django (PART 10)

preview_player
Показать описание
🔥 Join the facebook group:

🔥 Follow pyplane on:

🔥 More on python and django:

Social Network project in Django
Part 10 consists of:
➜ getting invitations from different users
➜ getting all the profiles in the system excluding ourself
➜ getting all the profiles that we can invite to friends.

Source code:

#django #socialnetwork #tutorial2021
Рекомендации по теме
Комментарии
Автор

this project really helping me to understand basic relationship between model views and templates. One problem I am facing is
most of the time you are typing in the bottom of the editor. and if I pause video to grasp the content youtube video player bar appears and bottom part of code gets hidden. It you will better if you scroll a bit down every time you reach bottom to keep typing in middle of the editor screen. For the sake of viewer. Because your content is great and I really want that your viewer can learn in comfort. Thank you for your tutorial

sddhruvo
Автор

Very useful course, just one comment which may help you to reach more learners, also it will help to understand what is made in each video - have you considering adding timestamp with description ? Basically to show what functionality is added in code in the video(for me I was looking for specific features and couldn't find it easily in whole course which it over 18parts:)), other way to add name in title or another, tag?, once learner is searching online for Django tutorials eg, adding profile to the view, creating Profile models, etc will pop out more accurately. Many thanks for your effort of making this video and hope more people learn form it:)

kathyy
Автор

Nice tutorial. One of the best available in internet. But you are horrible in naming the functions, urls and others !

mehedihasanpiash
Автор

Getting Error while creating custom manager --> 'Manager' object has no attribute 'invatations_received'

waseekhan_
Автор

Great content.
Can I use this method for requesting to follow that user (Like Instagram)?

jameskulu
Автор

Final part well variable written :

def get_all_profiles_to_invite(self, me):
me_profile = Profile.objects.get(user=me)
others =
relationship_iam_in = | Q(receiver=me_profile))

all_ready_friends = []

for rel in relationship_iam_in:

if rel.status == 'Accepted':



not_friends_yet = [profile for profile in others if profile not in all_ready_friends]
return not_friends_yet

AmineOnline