title: I got error when I click in Like button in Django
body: <p>I got error when I click in like button in Django
  <strong>Video matching query does not exist.</strong></p>
  <p><strong>the traceback</strong></p>
  <pre><code>video_obj = Video.objects.get(id=video_id) 
  </code></pre>
  <p>I follow tutorial in youtube I got error
  when I click in like button the error appear
  how I can solve this problem</p>
  <p>This my model for video</p>
  <pre><code>class Video(models.Model):
  author = models.ForeignKey(Account, on_delete=models.CASCADE)
  video = models.FileField(upload_to='post-videos', validators=[validate_file_extension])
  title = models.CharField(max_length=100)
  description = models.TextField(null=True, blank=True)
  liked = models.ManyToManyField(Account, blank=True, related_name='likes')
  </code></pre>
  <p>my view</p>
  <pre><code>def like_unlike_videos(request):
  user = request.user
  if request.method == 'POST':
      video_id = request.POST.get('video_id')
      video_obj = Video.objects.get(id=video_id)
      account = Account.objects.get(username=user)
  
      if account in video_obj.liked.all():
          video_obj.liked.remove(account)
      else:
          video_obj.liked.add(account)
  
      like, created = Like.objects.get_or_create(username=account, video_id=video_id)
  
      if not created:
          if like.value == 'Like':
              like.value = 'Unlike'
          else:
              like.value = 'Like'
  
      else:
          like.value = 'Like'
  
          video_obj.save()
          like.save()
  
      data = {
  
      }
      data = {
          'value': like.value,
          'likes': video_obj.liked.all()
      }
  return render(request ,'video/the_video.html', data)
  </code></pre>
  <p>my template</p>
  <pre><code>  &lt;form action=&quot;{% url 'video:like-video-view' %}&quot; method=&quot;POST&quot; class=&quot;like-form&quot; id='{{video.id}}'&gt;
      {% csrf_token %}
      &lt;input type=&quot;hidden&quot; name=&quot;post_id&quot; value={{video.id}}&gt;  
          &lt;button type=&quot;submit&quot; class=&quot;ui button like-btn{{video.id}}&quot;&gt;
              {% if account not in video.liked.all %}
                 Like
              {% else %}
                 Unlike
              {% endif %}
          &lt;/button&gt;
            &lt;div class=&quot;ui grid&quot;&gt;
                &lt;div class=&quot;column&quot;&gt;
                   &lt;div class=&quot;like-count{{video.id}}&quot;&gt; {{video.num_likes}} &lt;/div&gt;
                &lt;/div&gt;
                &lt;div class=&quot;column&quot;&gt;
                   likes
              &lt;/div&gt;
            &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>