RSS

Blog

Django pagination boilerplate template code

h36 May 2010 –  Comments (7)

Comments

I'd make a templatetag, it's shorter to copy/paste once you installed it :)

Alternatively ... http://github.com/ericflo/django-pagination

[] mat ~ 1 year, 9 months ago at 6:54 a.m.

Nice code, but it is next to impossible to read the dark blue on the black background.

[] Dan ~ 1 year, 9 months ago at 9:16 a.m.

@mat

I usually don't copy paste it ..

{% include "pagination.inc.html" %}

Not much longer than a template tag and it allow me to keep my HTML code where it belongs .. in a template.

[] h3 ~ 1 year, 9 months ago at 12:44 p.m.

@Dan

Fixed.

[] h3 ~ 1 year, 9 months ago at 12:50 p.m.

Great post! Thanks for sharing!

term papers

[] Jade Green ~ 1 year, 4 months ago at 11:07 a.m.

Very informative site. I learn new code because of your post. Thanks for sharing. Excellent sites.

[] Feeldoe ~ 1 year, 1 month ago at 8:21 a.m.

I visited your blog for the first time and just been your fan. Keep posting as I am gonna come to read it everyday.Your post is very informative. I learn new code because of your post. Thanks for sharing.

[] Rose L. Smith ~ 1 year, 1 month ago at 8:24 a.m.

Copyrighted stuff .. u know.