Comments (6)
I believe the problem is that {{ request.path }} is empty on lines 7 and 25 because {{ request }} does not get passed to the pagination template. Pull request pending. Iām using my fork in the meantime and not experiencing this issue anymore.
from dj-pagination.
Django 1.10.6, dj-pagination 2.2.1
My template configuration
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
SITE_TEMPLATES_DIR,
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages',
],
},
},
]
from dj-pagination.
If you submit a pull request I'll create a new PyPI release. š
from dj-pagination.
Same problem with @christianmlong
how to fix it?
from dj-pagination.
I ended up just using PAGINATION_DISABLE_LINK_FOR_FIRST_PAGE=False. The urls aren't as clean, but it works.
from dj-pagination.
Pushed version 2.3 to PyPI: https://pypi.python.org/pypi/dj-pagination
from dj-pagination.
Related Issues (12)
- Django 1.10 compatibility HOT 4
- Current setup_requires can cause Django 2.0 to install on Python 2 HOT 3
- Bugfix release for PR #14 HOT 2
- Sometimes the {% paginate using 'mypath\pagination.html' %} was no useful HOT 2
- Release 2.3.1 reverts change from #14 HOT 6
- About pagination.html path HOT 4
- Add option SHOW_FIRST_PAGE_WHEN_INVALID HOT 1
- Suddenly stopped working when migrating to Django 2.2 HOT 3
- How do I add gap between the page numbers displayed at the bottom?
- Add proper contributors file
- previous issue HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dj-pagination.