title: how to turn class based view variable to function based view?
body: <p>In the classs based view I  can just go "paginate_by = 8" and in html I can do </p>
  
  <pre class="lang-py prettyprint-override"><code>{% if page_obj.has_previous %}
       &lt;a class="btn btn-outline-info mb-4" href="?page=1"&gt;First&lt;/a&gt;
       &lt;a class="btn btn-outline-info mb-4" href="?page={{ page_obj.previous_page_number }}"&gt;Previous&lt;/a&gt;
  {% endif %}
  </code></pre>
  
  <p>But for function based view, is there anything I  can do such as paginate_by such that I don't have to modify my html from what I have? </p>