You can customize the application using settings.py
.
Name | Default | Description |
---|---|---|
|
10 |
How many objects are normally displayed in a page (overwriteable by templatetag). |
------------------------------------------------- | ----------- | ---------------------------------------------- |
|
'page' |
The querystring key of the page number (e.g. |
------------------------------------------------- | ----------- | ---------------------------------------------- |
ENDLESS_PAGINATION_ORPHANS |
0 | See Django Paginator definition of orphans. |
------------------------------------------------- | ----------- | ---------------------------------------------- |
|
'loading' |
If you use the default |
------------------------------------------------- | ----------- | ---------------------------------------------- |
ENDLESS_PAGINATION_PREVIOUS_LABEL |
'<' | Default label for the previous page link. |
------------------------------------------------- | ----------- | ---------------------------------------------- |
ENDLESS_PAGINATION_NEXT_LABEL |
'>' | Default label for the next page link. |
------------------------------------------------- | ----------- | ---------------------------------------------- |
ENDLESS_PAGINATION_FIRST_LABEL |
'<<' | Default label for the first page link. |
------------------------------------------------- | ----------- | ---------------------------------------------- |
ENDLESS_PAGINATION_LAST_LABEL |
'>>' | Default label for the last page link. |
------------------------------------------------- | ----------- | ---------------------------------------------- |
|
False |
Set to True if your SEO alchemist wants search engines not to follow pagination links. |
------------------------------------------------- | ----------- | ---------------------------------------------- |
|
None |
Callable (or dotted path to a callable) that returns pages to be displayed. If None, a default callable is used; that produces |
------------------------------------------------- | ----------- | ---------------------------------------------- |
|
3 |
Deafult number of extremes displayed when |
------------------------------------------------- | ----------- | ---------------------------------------------- |
|
2 |
Deafult number of arounds displayed when |
------------------------------------------------- | ----------- | ---------------------------------------------- |
|
False |
Whether or not the first and last pages arrows are displayed when |
------------------------------------------------- | ----------- | ---------------------------------------------- |
|
'template' |
Template variable name used by the |
You can override the default template for show_more
templatetag following some rules:
- more link is shown only if the variable
querystring
is not False; - the container (most external html element) class is endless_container;
- the more link and the loader hidden element live inside the container;
- the more link class is endless_more;
- the more link rel attribute is
{{ querystring_key }}
; - the loader hidden element class is endless_loading.