installation, which is covered in INSTALL.txt in this same directory.)
1. List this application in the ``INSTALLED_APPS`` portion of your settings
- file. Your settings file might look something like:
+ file. Your settings file might look something like::
- INSTALLED_APPS = (
- # ...
- 'pagination',
- )
+ INSTALLED_APPS = (
+ # ...
+ 'pagination',
+ )
2. Install the pagination middleware. Your settings file might look something
- like:
+ like::
- MIDDLEWARE_CLASSES = (
- # ...
- 'pagination.middleware.PaginationMiddleware',
- )
+ MIDDLEWARE_CLASSES = (
+ # ...
+ 'pagination.middleware.PaginationMiddleware',
+ )
3. Add this line at the top of your template to load the pagination tags: