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:
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.