Here is a short piece of code to help write a simple pager (or paginator) in django.
Its main function is to insert ellipses at the right places. (Of course! What’s hard about a pager anyway). The result is like the one you see on stackoverflow.com.
Examples:
The code (See the original post for the code, if you are using a feed reader such as Google Reader):
Its main function is to insert ellipses at the right places. (Of course! What’s hard about a pager anyway). The result is like the one you see on stackoverflow.com.
Examples:
The code (See the original post for the code, if you are using a feed reader such as Google Reader):

