Skip to content

Instantly share code, notes, and snippets.

@LowerDeez
LowerDeez / home.html
Created May 28, 2017 21:29
Django Pagination (with search query)
{% for article in articles %}
{% include 'articles/partial/partial_article.html' %}
{% empty %}
<h1>Nothing to show</h1>
{% endfor %}
<!-- Pagination -->
{% if articles.has_other_pages %}
<div class="text-center">
<ul class="pagination pagination-lg text-center">