Есть такой код:
urls.py:
url(r'^monuments/page/(\d+)/$', 'monuments', name='points-index'),
views.py:
def monuments(request, page_number=1):
points = Point.objects.all()
current_page = Paginator(points, 4)
return render_to_response('points/monuments.html', {
'points': current_page.page(page_number),})
html:
{% if points.has_previous %}
<a href="/monuments/page/{{ points.previous_page_number }}/">«</a>
{% else %}
<a href="">«</a>
{% endif %}
{% for page in points.paginator.page_range %}
{% if page == points.number %}
<a href="/monuments/page/{{ page }}" class="active">{{ page }}</a>
{% else %}
<a href="/monuments/page/{{ page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if points.has_next %}
<a href="/monuments/page/{{ points.next_page_number }}/">»</a>
{% else %}
<a href="">»</a>
{% endif %}
как установить лимит страниц, что бы было не 
а вроде такого 