Likes On Profile Pages - Django Wednesdays Twitter #17

preview_player
Показать описание
In this video I'll show you how to add likes to tweets on Profile Pages.

Adding likes to profile pages is very similar to adding them on the homepage.

The difference is in the redirect afterwards. I'll show you how to redirect either back to the profile page, or to the homepage accordingly.

#django #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:06 - Copy Like Counter
2:05 - Copy Like Code
2:38 - Redirect Problem
3:51 - HTTP_Referrer
4:26 - Print Referer
5:17 - Update Redirect To Referer
6:14 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶ Watch Django Wednesdays Twitter Playlist ✅ Subscribe To My YouTube Channel:
▶ See More At: ✅ Join My Facebook Group:
▶ Get The Code

Codemycom
Автор

It's been a while since I stopped here!! Hello John

idukunda_lengo
Автор

Today is Wednesday 😢... Django Wednesday

abhisheksri
Автор

These are great I follow it step by step, and I learned django with your events app. Can you please consider making an ecommers web after this?

amirfaregh
Автор

hey, im having trouble here, if I want to print things of the backend like but it doesnt appear in the terminal, but the print function doesnt work, how should I print stuff then?

william-WBG
Автор

shouldn't we make it so the home page filters meeps to only show the ones posted by users we follow? someing like {% if meep.user in user.profile.following.all %}

Dylan-tbft
Автор

Please sir complete the play list as soon as possible

abhisheksri
visit shbcf.ru