views:

41

answers:

1

I am trying to implement a simple paginator example. Is there any tutorial, example that runs through one SIMPLE example from start to finish.

urls.py views.py settings.py models.py

I am aware of this one:

http://docs.djangoproject.com/en/1.1/topics/pagination/

But this assumes you already have urls, models and settings.

Thanks.

A: 

These might help:

  1. http://showmedo.com/videotutorials/video?fromSeriesID=294&name=2940010 (video/screencast)
  2. http://www.davidcramer.net/code/466/pagination-in-django.html
  3. http://www.tummy.com/Community/Articles/django-pagination/ (not exactly a tutorial but might give you ideas)
Manoj Govindan
Thanks! Do I need to install Pagination by the guy from link 1 to run pagination in django? Or is there a build in pagination?
MacPython
@MacPython: That particular tutorial relies on a custom Pagination middleware. If you are going to implement it as suggested in the tutorial then you have to get the middleware. It is however possibel to paginate without custom middleware. Other tutorials use simpler mechanisms that do not involve custom middleware. Django does have support for pagination (http://docs.djangoproject.com/en/dev/topics/pagination/) but it is common to see people add custom convenience layers on top of it.
Manoj Govindan