Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8704793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:11:59+00:00 2026-06-13T03:11:59+00:00

i am using django endless pagination . its working normally that just shows the

  • 0

i am using django endless pagination . its working normally that just shows the numbers at the bottom .

but, i tried to integrate twitter style into it:

http://django-endless-pagination.readthedocs.org/en/latest/twitter_pagination.html#pagination-on-scroll

I have followed exactly but didnt work .

When I looked at the js code, i have seen they have used .endless_more in js class, but the generated html file has only two classes for links :

1)endless_page_current
2)endless_page_link

but they used a.endless_more in js.

Can you tell me the correct way to implement?

Thanks

Views :

from endless_pagination.decorators import page_template
@page_template("my_index_page.html")
def myview(request,template='my_index.html', extra_context=None):
  data = {}
 if extra_context is not None:
     data.update(extra_context)

 myobj = Myobj.objects.all()
 data['myobj'] = myobj
 return render_to_response(template, data, context_instance=RequestContext(request))

Template :

my_index.html

 <script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="{{ STATIC_URL }}js/endless.js"></script>
<script src="{{ STATIC_URL }}js/endless_on_scroll.js"></script>
 {% include page_template %}

my_index_page.html

 {% load templatetags %}
<center>
<div>
{% load endless %}
{% paginate myobj %}
{% for obj in myobj %}

 {{  obj.name }}


 {% endfor %}

 {% show_pages %}

  </div> 
 <center>

Here, I seriously beleive that i need to add some classes like endless_more , which the django-endless-documentation missed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:12:00+00:00Added an answer on June 13, 2026 at 3:12 am

    i’m using that on my portal, and it seems fine your code, you just missed one thing

    {% show_more %}
    

    that’s what actually enables the twitter-style infinite pagination

    edit here:

    you may want to add this too:

    <script type="text/javascript" charset="utf-8">
        var endless_on_scroll_margin = 20;
    </script>
    

    where “20” is the number of pixels (from the bottom of the page) that triggers the scrolling

    you may want to try more than one value till you get the perfect one for your project

    see here and here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I using Django tagging project. That is was very stable project. Working on django
I was trying to use django-endless-pagination twitter pagination , but Django is throwing and
using django 1.4, I am trying to Post and it seems like its not
When using Django admin with grappelli I would like that a click on a
Using django 1.4 and have seen that when you use startproject it now creates
I have just started using django-cms so please forgive my newbieness. Every time i
I'm using django-cms 2.2 and imagestore as gallery plugin. But I need to customize
I'm using Django with MySQL and South, and everything's just dandy...until something goes wrong
Been using Django for < 1yr now, but this one is new-to-me. Hopefully someone?
note: using django/python/javascript/flash So its been two days since I'm stuck at the error.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.