title: How to bookmark a page in Django?
body: <p>I am trying to edit an html page so a logged in user can favorite / bookmark a <code>video.id</code></p>
  
  <p>Here is the <strong>.html</strong> file</p>
  
  <pre><code>&lt;td&gt;
      &lt;form method='POST' action="{% url 'researcher_view_app:favourite_post' video.id %}"&gt;
          {% csrf_token %}
          &lt;input type='hidden' name='video' value={{ video.id }}&gt;
          &lt;button type='submit'&gt;Bookmark&lt;/button&gt;
      &lt;/form&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>Here is the <strong>urls.py</strong> file</p>
  
  <pre><code>path('&lt;int:fav_id&gt;/favourite_post', views.favourite_post, name='favourite_post'),
  </code></pre>
  
  <p>Here is the <strong>view.py</strong> file </p>
  
  <pre><code>def favourite_post(request, fav_id):
      video = get_object_or_404(Video, id=fav_id)
      if request.method == 'POST':
          video.
  
     return render(request, 'researcher_view_app/%s' % fav_id)
  </code></pre>