Like or Unlike Tweets - Django Wednesdays Twitter #16

Published: 05 April 2023
on channel: Codemy.com
2,943
119

In this video I'll show you how to Like or Unlike Tweets (or Meeps) for our Twitter Clone App With Django and Python.

We'll tweak our Meep Model to track likes, and we'll build a little count function.

Then we'll create a function in our views.py file to add or remove a like based on the user.

#django #codemy #JohnElder

Timecodes

0:00​​ - Introduction
0:52 - Add Likes To Meep Model
2:46 - Make and Push Migration
3:47 - Add Meep_Like Function to Views.py
7:13 - Add Meep_Like URL
8:20 - Exclude Likes From Forms.py
9:08 - Tweak Homepage To Add Meep Count
10:12 - Like Meep Link on Homepage
12:18 - Unlike Meep Link on Homepage
14:09 - Test On Another User
14:45 - See Likes On Admin Page
15:02 - Conclusion


Watch video Like or Unlike Tweets - Django Wednesdays Twitter #16 online, duration hours minute second in high quality that is uploaded to the channel Codemy.com 05 April 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 2,943 times and liked it 119 visitors.