I'm new to Django and front-end development. I would like to build some Django app with pagination, using the Bootstrap theme. I found django-endless-pagination
is quite useful for pagination. To have the Bootstrap theme, I tried django-endless-pagination-bootstrap-theme
.
I have my views.py
just returned a list of entries to be shown in display.html
which is coded as:
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
{% load endless %}
{% paginate entries %}
{% for entry in entries %}
<p>{{ entry.value }}</p>
{% endfor %}
<div class="pagination">
{% show_pages %}
</div>
However, the pagination style I have (shown in Fig. 1) is quite different from that shown in the website of django-endless-pagination-bootstrap-theme
(copied as in Fig. 2).
Fig. 1
Fig. 2
May I know what the problems are in my example?
Thank you.