-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Endless pagination loading entire page on second page after scroll #48
Comments
After several attempts, i have delete all the caching and restarted the apache and it all works fine now. |
I have the same issue, but I'm running on localhost. Can you please explain how you did the request.is_ajax() ? Also, I'm using class based generic views. |
My view looks like below. def homepage(request):
And my Homepage.html looks like below.
And my home_page_index.html has the actual content that needs to be in pageless scrolling. |
But what if you have multiple paginations, and using the decorator is not an option. |
Are you saying that you want to pass different page_template to the same view depending on the area in your site you need scrolling ? |
Correct, like 3 multiple paginations on same view. Using class based generic views right now, but can change to function based views if CBV not an option. |
If there is any way you can recognise the different paginations inside the view, then I think you can write a condition like below inside the view. if request.is_ajax(): |
I tried to pull the 'querystring_key' from the request for exactly that purpose, but no luck so far. Not sure if it's the same as the "paginate using 'x'". |
I don't think I can help any further without knowing exactly how your page and code looks. |
Hi,
i am using twitter style django end less pagination on my website.
On the homepage, the endless pagination works fine and no problems there.
But on the different category page, it is loading the entire page on the second page just with second page items. I am clueless why it is happening only on the category pages and not on the homepage.
It looks like request.is_ajax() is not working when i scroll to second page and reloading the entire page.
Can anyone help?
Thanks
The text was updated successfully, but these errors were encountered: