Display only some of the page numbers by django pagination

Gonna throw this in. I came up with it because it lets you know there are more pages on either side. <ul class=”pagination”> {% if page_obj.has_previous %} <li><a href=”https://stackoverflow.com/questions/30864011/?page={{ page_obj.previous_page_number }}”><i class=”fa fa-chevron-left” aria-hidden=”true”></i></a></li> {% else %} <li class=”disabled”><span><i class=”fa fa-chevron-left” aria-hidden=”true”></i></span></li> {% endif %} {% if page_obj.number|add:’-4′ > 1 %} <li><a href=”?page={{ page_obj.number|add:’-5′ }}”>&hellip;</a></li> … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)