You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
Copy file name to clipboardexpand all lines: README.rst
+6-7
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,4 @@
1
-
===========================
2
-
django-pagination-bootstrap
1
+
Django Pagination Bootstrap
3
2
===========================
4
3
5
4
.. badges-begin
@@ -27,7 +26,7 @@ Django-pagination-bootstrap is an app to easy add pagination in Django_, using `
27
26
Note: This library currently works with Python 3.6+, Django 2.0+ and Bootstrap 3+. For older versions, please use version 1.3.0.
28
27
29
28
Installation
30
-
============
29
+
------------
31
30
32
31
To install ``django-pagination-bootstrap`` simply run:
33
32
@@ -36,7 +35,7 @@ To install ``django-pagination-bootstrap`` simply run:
36
35
pip install django-pagination-bootstrap
37
36
38
37
Configuration
39
-
=============
38
+
-------------
40
39
41
40
We need to hook ``django-pagination-bootstrap`` into our project.
42
41
@@ -107,7 +106,7 @@ This does not take any arguments, but does assume that you have already called a
107
106
That's it! You have now paginated object_list and given users of the site a way to navigate between the different pages--all without touching your views.
108
107
109
108
Side effects
110
-
============
109
+
------------
111
110
112
111
A django-paginator_ instance will be injected in the template context as ``paginator``. You can access it as usual:
113
112
@@ -116,7 +115,7 @@ A django-paginator_ instance will be injected in the template context as ``pagin
116
115
page {{ page }} of {{ paginator.num_pages }}
117
116
118
117
Optional Settings
119
-
=================
118
+
-----------------
120
119
121
120
In django-pagination, there are no required settings. There are, however, a small set of optional settings useful for changing the default behavior of the pagination tags. Here's an overview:
122
121
@@ -139,7 +138,7 @@ The number of orphans allowed. According to the Django documentation, orphans ar
139
138
Determines whether an invalid page raises an Http404 or just sets the invalid_page context variable. True does the former and False does the latter.
140
139
141
140
Credits
142
-
=======
141
+
-------
143
142
144
143
This is based on Eric Florenzano's django-pagination 1.0.7 and is an updated version of https://github.com/tgdn/django-bootstrap-pagination for Django 1.7 or higher.
0 commit comments