[Answered ]-I got error when I click in Like button in Django

1👍

The name of your parameter is post_id, but should be video_id:

<input type="hidden" name="video_id" value="{{video.id}}">

Note: It is often better to use get_object_or_404(…) [Django-doc],
then to use .get(…) [Django-doc] directly. In case the object does not exists,
for example because the user altered the URL themselves, the get_object_or_404(…) will result in returning a HTTP 404 Not Found response, whereas using
.get(…) will result in a HTTP 500 Server Error.

Leave a comment