<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Pagination in Django</title>
	<atom:link href="http://www.davidcramer.net/code/466/pagination-in-django.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.davidcramer.net/code/466/pagination-in-django.html</link>
	<description>A blog about Django, JavaScript, CSS, and general web development.</description>
	<lastBuildDate>Fri, 12 Mar 2010 19:46:01 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andre LeBlanc</title>
		<link>http://www.davidcramer.net/code/466/pagination-in-django.html/comment-page-1#comment-20891</link>
		<dc:creator>Andre LeBlanc</dc:creator>
		<pubDate>Mon, 20 Jul 2009 03:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=466#comment-20891</guid>
		<description>Luijk has it right.  I stopped reading when I saw the ridiculous amount of code you wrote as an example of django&#039;s built in pagination.  all you have to do call the object_list generic view at the end of your view, pass it the queryset and a handful of extra (optional) arguments.
At the template level, it can be a little bit redundant, still, but that can be handled with a simple inclusion tag.  Sometimes it seems like you save a lot of time by just rolling your own stuff like this instead of figuring out the django idioms, but in the end it pays off to spend a couple of days with the docs :)</description>
		<content:encoded><![CDATA[<p>Luijk has it right.  I stopped reading when I saw the ridiculous amount of code you wrote as an example of django&#8217;s built in pagination.  all you have to do call the object_list generic view at the end of your view, pass it the queryset and a handful of extra (optional) arguments.<br />
At the template level, it can be a little bit redundant, still, but that can be handled with a simple inclusion tag.  Sometimes it seems like you save a lot of time by just rolling your own stuff like this instead of figuring out the django idioms, but in the end it pays off to spend a couple of days with the docs <img src='http://www.davidcramer.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jb</title>
		<link>http://www.davidcramer.net/code/466/pagination-in-django.html/comment-page-1#comment-20882</link>
		<dc:creator>jb</dc:creator>
		<pubDate>Mon, 13 Jul 2009 05:29:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=466#comment-20882</guid>
		<description>Personally I like having less verbose template logic. I pass request into a custom Paginator subclass which adds another iteration method &quot;pages&quot;. &quot;pages&quot; returns a tuple of (page_number, urlencoded_query) which you can just iterate over to display in your templates.

Secondly I&#039;ve got a little shortcut function &quot;get_pagination&quot; that returns a tuple of (paginator, page_obj) for a given request and queryset.

Makes the view code less ug.

http://gist.github.com/145950</description>
		<content:encoded><![CDATA[<p>Personally I like having less verbose template logic. I pass request into a custom Paginator subclass which adds another iteration method &#8220;pages&#8221;. &#8220;pages&#8221; returns a tuple of (page_number, urlencoded_query) which you can just iterate over to display in your templates.</p>
<p>Secondly I&#8217;ve got a little shortcut function &#8220;get_pagination&#8221; that returns a tuple of (paginator, page_obj) for a given request and queryset.</p>
<p>Makes the view code less ug.</p>
<p><a href="http://gist.github.com/145950" rel="nofollow">http://gist.github.com/145950</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Young</title>
		<link>http://www.davidcramer.net/code/466/pagination-in-django.html/comment-page-1#comment-20862</link>
		<dc:creator>Chris Young</dc:creator>
		<pubDate>Mon, 06 Jul 2009 01:51:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=466#comment-20862</guid>
		<description>Another vote for django-pagination here.  Sensible and easy to use.</description>
		<content:encoded><![CDATA[<p>Another vote for django-pagination here.  Sensible and easy to use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ???</title>
		<link>http://www.davidcramer.net/code/466/pagination-in-django.html/comment-page-1#comment-20859</link>
		<dc:creator>???</dc:creator>
		<pubDate>Sun, 05 Jul 2009 00:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=466#comment-20859</guid>
		<description>Yes, there is a useful tag to deal with pagination.</description>
		<content:encoded><![CDATA[<p>Yes, there is a useful tag to deal with pagination.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luijk</title>
		<link>http://www.davidcramer.net/code/466/pagination-in-django.html/comment-page-1#comment-20857</link>
		<dc:creator>Luijk</dc:creator>
		<pubDate>Fri, 03 Jul 2009 11:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=466#comment-20857</guid>
		<description>What&#039;s wrong with wrapping a generic function?

http://docs.djangoproject.com/en/dev/ref/generic-views/#django-views-generic-list-detail-object-list</description>
		<content:encoded><![CDATA[<p>What&#8217;s wrong with wrapping a generic function?</p>
<p><a href="http://docs.djangoproject.com/en/dev/ref/generic-views/#django-views-generic-list-detail-object-list" rel="nofollow">http://docs.djangoproject.com/en/dev/ref/generic-views/#django-views-generic-list-detail-object-list</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Casseen</title>
		<link>http://www.davidcramer.net/code/466/pagination-in-django.html/comment-page-1#comment-20856</link>
		<dc:creator>Casseen</dc:creator>
		<pubDate>Fri, 03 Jul 2009 10:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=466#comment-20856</guid>
		<description>I would also recommend django-pagination. For most situations it&#039;s more than efficient.</description>
		<content:encoded><![CDATA[<p>I would also recommend django-pagination. For most situations it&#8217;s more than efficient.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: UloPe</title>
		<link>http://www.davidcramer.net/code/466/pagination-in-django.html/comment-page-1#comment-20855</link>
		<dc:creator>UloPe</dc:creator>
		<pubDate>Fri, 03 Jul 2009 09:13:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=466#comment-20855</guid>
		<description>Additional to django-pagination you might also find django-reversetag (http://github.com/ulope/django-reversetag/tree/master) to be helpful in creating reusable pagination templates.</description>
		<content:encoded><![CDATA[<p>Additional to django-pagination you might also find django-reversetag (<a href="http://github.com/ulope/django-reversetag/tree/master" rel="nofollow">http://github.com/ulope/django-reversetag/tree/master</a>) to be helpful in creating reusable pagination templates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TrevorFSmith</title>
		<link>http://www.davidcramer.net/code/466/pagination-in-django.html/comment-page-1#comment-20854</link>
		<dc:creator>TrevorFSmith</dc:creator>
		<pubDate>Thu, 02 Jul 2009 23:43:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=466#comment-20854</guid>
		<description>I&#039;ve been using django-pagination on a few projects and it works well for these sorts of situations.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using django-pagination on a few projects and it works well for these sorts of situations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.davidcramer.net/code/466/pagination-in-django.html/comment-page-1#comment-20853</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 02 Jul 2009 23:25:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=466#comment-20853</guid>
		<description>django-pagination looks like a pretty nice project. Seems to be a less verbose approach to what we&#039;ve done. I like it :)</description>
		<content:encoded><![CDATA[<p>django-pagination looks like a pretty nice project. Seems to be a less verbose approach to what we&#8217;ve done. I like it <img src='http://www.davidcramer.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beetle B.</title>
		<link>http://www.davidcramer.net/code/466/pagination-in-django.html/comment-page-1#comment-20852</link>
		<dc:creator>Beetle B.</dc:creator>
		<pubDate>Thu, 02 Jul 2009 22:27:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=466#comment-20852</guid>
		<description>Have you looked at django pagination?

http://code.google.com/p/django-pagination/</description>
		<content:encoded><![CDATA[<p>Have you looked at django pagination?</p>
<p><a href="http://code.google.com/p/django-pagination/" rel="nofollow">http://code.google.com/p/django-pagination/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
