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

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

🔥 Follow pyplane on:

🔥 More on python and django:

Social Network project in Django
Part 6 consists of:
➜ Creating models : posts, comments, likes
➜ displaying in "my profile" number of posts written, number of likes given, number of likes received
➜ accessing by data forward and reverse relationships

Source code:

#django #learndjango #python #djangoproject #djangotutorial #django3 #python3
Рекомендации по теме
Комментарии
Автор

Again awesome video, i am loving .
I would to say that could you make seld video regarding methods which you have used in this tutorial with syntax, it would be really helpfull for beginners, just suggesting you bro

ashharmansuri
Автор

sorry but I don't understand why in Post model: auto add in field liked ( ManyToManyField) when you make a Like's objects

cangimotcaiten
Автор

Getting an error.. table posts_post has no column named author _id

AnkurChakraborty-spkc
Автор

I am not even sure if anyone will answer this but I keep getting this error
AttributeError at /profiles/myprofile/
'Profile' object has no attribute 'posts'

I have checked and rechecked the code and cannot figure out what is wrong. if anyone can help that would be great.

michaelchilcott
Автор

Why did you return self.pk at 08:20? What is this pk? PRIMARY KEY?

sidharthpunathil