Comments and Replies - Building a web app with Django - Part 12

preview_player
Показать описание
In this video we will implement comments and replies

Do you want to add more replies to replies? Then check our this video here:

This is part of a tutorial series where we build a web app from scratch and go live on the internet. Enjoy.

0:00 Add Comments
19:15 Delete Comment
24:40 Add Replies
34:57 Delete Replies

Follow me on:

Support me on:
Thank you.

#django #python #webdevelopment #webapp #stayathomedad
Рекомендации по теме
Комментарии
Автор

🐞Bug Alert! - No comments tab:

404 page when logging in with admin:
In the signals.py file, in the create_profile function add:
else:

if not instance.is_superuser:
...

ajudmeister
Автор

This is incredible. Thank you so much.

enkiimuto
Автор

@Andreas Jud I really appreciate your work and this project. You are one of the select few that know how to teach what you are best at. I have two questions though: Can this comment feature cascade (i.e. comment on a comment within or inside the main comment - 'child comment' if you wish)?

And are you going to include the like | dislike app (feature) which I've always been struggling to implement and which is rarely featured on many Django tutorials? It'll be nice if the likes can cascade too (being able to like the comment and the sub-comment). Thanks once more

christophermaile
Автор

Late to the party, but in the __str__ implementation for comments, would it not be more efficient to use an if to determine if author is None rather than a try/except? Throwing, catching and handling an exception comparatively quite expensive in terms of CPU usage.

PhilParadis
Автор

Hello Andreas, How are you? I hope you are fine!
I want to know what is the method you used to style the website while the HTML does not have CSS I see just classes?
Thanks!!!

abobakerkhaled
Автор

I meet some probleams with the admin/login path. When I login with the admin site, it raises 404 Error (The current path, admin/login/, matched the last one.)

ThắngPhu-zt
Автор

Thanks a lot dude! There is any tutorial for add a reply to another reply?

__mostafa__
Автор

Hello sir, how i can do reply on reply ? Like this -
comment:
reply:
reply


VitaliiPodhornyi
Автор

Please why dont we have the 'comment' in the Post class as we had 'likes' in the Post class which had manytomanyfield

ugonnamuoneme
Автор

Didn't u forget to protect replies to be deleted from non-author people?

LUCI-wvfk