Adding Comments To Post In Django - Build A Blog With Django (part 7)

preview_player
Показать описание
Hello great people, glad to see you again.
In this video, we will see how to add a comment model to our blog app.
So readers can send us comments or feedbacks, it will be easy to do and to manage.
Also, we will see how to add the comment count to our view.
We covered:
# Creating comments model for a Django blog website.
# Creating a comment form to get comments from users

-------------

-------------------------------------------

Thanks For Watching.

Don't Forget To Subscribe For More Videos.

-------------------------------------------

Freelancing:

-------------------------------------------

My Profiles:
-------------------------------------------

Contact Us:
Рекомендации по теме
Комментарии
Автор

A great tutorial, concise and right to the point. Thank you.


I am thinking about a case other than blog / post / comments.
How to add comments below each article of a web site?

The templates do not have "model". That is because the templates are not stored in database.
The comments, however, have their own model and will be stored in database.
The question is how to create a relation between these two?

p.s.
We can create that relation for the blog-post case because each "post" and its "comments" have their own models.

fsh
Автор

I want to add comment section to each html page of a website. Should I define the django/model/form for each individual page?

fsh
Автор

Or it can be defined only once? If so, how we can call and show the specific comments on each page from within all the comments in database?

fsh
Автор

Nice Video, can share the link to code in github?

ambroseakpobe
Автор

Yes we want to know how to edit and delete comments

raphaelokai