<?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>Comentarios en: Paginacion en django estilo digg</title>
	<atom:link href="http://axiacore.com/2010/01/paginacion-en-django-estilo-digg/feed/" rel="self" type="application/rss+xml" />
	<link>http://axiacore.com/2010/01/paginacion-en-django-estilo-digg/</link>
	<description>Tenemos poderes magicos...</description>
	<lastBuildDate>Mon, 23 Apr 2012 17:47:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Por: The Lawnmower Man</title>
		<link>http://axiacore.com/2010/01/paginacion-en-django-estilo-digg/comment-page-1/#comment-1265</link>
		<dc:creator>The Lawnmower Man</dc:creator>
		<pubDate>Mon, 23 Jan 2012 13:33:38 +0000</pubDate>
		<guid isPermaLink="false">http://axiacore.com/blog/?p=800#comment-1265</guid>
		<description>Funciona perfectamente. Como hay gente con problemas, que sepan que solo hace falta tener en cuenta:

1) En el código del templatetag, cambiar &quot;&lt;&quot; y &quot;&gt;&quot; por &quot;&quot;, respectivamente.
2) En la vista, proporcionar las dos instancias  de objeto que requiere el &quot;templatetag&quot;:
return render_to_response(&#039;plantilla.html&#039;, {&#039;page_obj&#039;:page_obj, &#039;paginator&#039;:paginator})

Muchas gracias Camilo, con diferencia el mejor tutorial para este problema que he encontrado en Internet.</description>
		<content:encoded><![CDATA[<p>Funciona perfectamente. Como hay gente con problemas, que sepan que solo hace falta tener en cuenta:</p>
<p>1) En el código del templatetag, cambiar &#8220;&lt;&#8221; y &#8220;&gt;&#8221; por &#8220;&#8221;, respectivamente.<br />
2) En la vista, proporcionar las dos instancias  de objeto que requiere el &#8220;templatetag&#8221;:<br />
return render_to_response(&#8216;plantilla.html&#8217;, {&#8216;page_obj&#8217;:page_obj, &#8216;paginator&#8217;:paginator})</p>
<p>Muchas gracias Camilo, con diferencia el mejor tutorial para este problema que he encontrado en Internet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Camilo Nova</title>
		<link>http://axiacore.com/2010/01/paginacion-en-django-estilo-digg/comment-page-1/#comment-1029</link>
		<dc:creator>Camilo Nova</dc:creator>
		<pubDate>Thu, 02 Dec 2010 21:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://axiacore.com/blog/?p=800#comment-1029</guid>
		<description>Pero publiquen los errores a ver como podemos ayudar!</description>
		<content:encoded><![CDATA[<p>Pero publiquen los errores a ver como podemos ayudar!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: francisco A.</title>
		<link>http://axiacore.com/2010/01/paginacion-en-django-estilo-digg/comment-page-1/#comment-1028</link>
		<dc:creator>francisco A.</dc:creator>
		<pubDate>Thu, 02 Dec 2010 18:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://axiacore.com/blog/?p=800#comment-1028</guid>
		<description>sin lugar a duda creo que algo falta en la explicacion, lo integre  pero no funciono</description>
		<content:encoded><![CDATA[<p>sin lugar a duda creo que algo falta en la explicacion, lo integre  pero no funciono</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Camilo Nova</title>
		<link>http://axiacore.com/2010/01/paginacion-en-django-estilo-digg/comment-page-1/#comment-991</link>
		<dc:creator>Camilo Nova</dc:creator>
		<pubDate>Tue, 24 Aug 2010 17:11:19 +0000</pubDate>
		<guid isPermaLink="false">http://axiacore.com/blog/?p=800#comment-991</guid>
		<description>Por favor publiquen sus errores o la parte que no entienden para como la solucionamos.</description>
		<content:encoded><![CDATA[<p>Por favor publiquen sus errores o la parte que no entienden para como la solucionamos.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Carlos</title>
		<link>http://axiacore.com/2010/01/paginacion-en-django-estilo-digg/comment-page-1/#comment-990</link>
		<dc:creator>Carlos</dc:creator>
		<pubDate>Tue, 24 Aug 2010 17:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://axiacore.com/blog/?p=800#comment-990</guid>
		<description>Sin duda un poco mas de esplicacion no estaria mal para los principiantes</description>
		<content:encoded><![CDATA[<p>Sin duda un poco mas de esplicacion no estaria mal para los principiantes</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Roylan</title>
		<link>http://axiacore.com/2010/01/paginacion-en-django-estilo-digg/comment-page-1/#comment-925</link>
		<dc:creator>Roylan</dc:creator>
		<pubDate>Mon, 31 May 2010 14:35:53 +0000</pubDate>
		<guid isPermaLink="false">http://axiacore.com/blog/?p=800#comment-925</guid>
		<description>HOla

Queremos implementar este paginado pero no funciona, creo que falta explicar si se debe hacer algo en la vista que se va a realizar este paginado.

salu2
roylan</description>
		<content:encoded><![CDATA[<p>HOla</p>
<p>Queremos implementar este paginado pero no funciona, creo que falta explicar si se debe hacer algo en la vista que se va a realizar este paginado.</p>
<p>salu2<br />
roylan</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Camilo Nova</title>
		<link>http://axiacore.com/2010/01/paginacion-en-django-estilo-digg/comment-page-1/#comment-888</link>
		<dc:creator>Camilo Nova</dc:creator>
		<pubDate>Sat, 30 Jan 2010 12:27:44 +0000</pubDate>
		<guid isPermaLink="false">http://axiacore.com/blog/?p=800#comment-888</guid>
		<description>First: Make sure the name of the app you have the templatetag is on your settings
Second: The other pagination method works for you?
Third: Did you have the template &#039;layout/pagination.html&#039; ?

Let me know</description>
		<content:encoded><![CDATA[<p>First: Make sure the name of the app you have the templatetag is on your settings<br />
Second: The other pagination method works for you?<br />
Third: Did you have the template &#8216;layout/pagination.html&#8217; ?</p>
<p>Let me know</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Vinicius Salsotto</title>
		<link>http://axiacore.com/2010/01/paginacion-en-django-estilo-digg/comment-page-1/#comment-887</link>
		<dc:creator>Vinicius Salsotto</dc:creator>
		<pubDate>Sat, 30 Jan 2010 04:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://axiacore.com/blog/?p=800#comment-887</guid>
		<description>Hi, I&#039;m having trouble!
I can not make it work, let me show you did with:

I added the file correctly render_paginator the directory &#039;templatetags&#039;.

consultoria.urls My file looks like this:
url (r &#039;^ interest / (?  P [\ w-]+)/(?  P \ d +)/$&#039;,&#039; category &#039;, name =&#039; category &#039;),

My View:
def category (request, slug = None, page = None, 2 = paginate_by, allow_empty = True):
    
    get_object_or_404 category = (Category, ** ( &#039;slug&#039;: slug))
    imoveis = Imovel.objects.filter (**{&#039; category &#039;: categoria.id)). order_by (&#039;-date &#039;)
    
    paginator = Paginator (real estate, paginate_by, allow_empty_first_page = allow_empty)
    
    
    if page == None:
        page = request.GET.get ( &#039;page&#039;, 1)

    try:
        page = int (page)
    except ValueError:
        raise Http404

    page_obj = paginator.page (page)
    
    context = Context ()
    context [ &#039;object_list&#039;] = page_obj.object_list
    context [ &#039;paginator&#039;] = paginator
    context [ &#039;page_obj&#039;] = page_obj
    
    return render_to_response ( &#039;consulting / categorias.html&#039;, context, context_instance = RequestContext (request))


The template is in the directory of templates, and template where you want to do pagination is as follows:
(% Load%) render_paginator
(% If%) is_paginated
    Render_paginator (% 1 3%)
(% Endif%)


Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m having trouble!<br />
I can not make it work, let me show you did with:</p>
<p>I added the file correctly render_paginator the directory &#8216;templatetags&#8217;.</p>
<p>consultoria.urls My file looks like this:<br />
url (r &#8216;^ interest / (?  P [\ w-]+)/(?  P \ d +)/$&#8217;,&#8217; category &#8216;, name =&#8217; category &#8216;),</p>
<p>My View:<br />
def category (request, slug = None, page = None, 2 = paginate_by, allow_empty = True):</p>
<p>    get_object_or_404 category = (Category, ** ( &#8216;slug&#8217;: slug))<br />
    imoveis = Imovel.objects.filter (**{&#8216; category &#8216;: categoria.id)). order_by (&#8216;-date &#8216;)</p>
<p>    paginator = Paginator (real estate, paginate_by, allow_empty_first_page = allow_empty)</p>
<p>    if page == None:<br />
        page = request.GET.get ( &#8216;page&#8217;, 1)</p>
<p>    try:<br />
        page = int (page)<br />
    except ValueError:<br />
        raise Http404</p>
<p>    page_obj = paginator.page (page)</p>
<p>    context = Context ()<br />
    context [ 'object_list'] = page_obj.object_list<br />
    context [ 'paginator'] = paginator<br />
    context [ 'page_obj'] = page_obj</p>
<p>    return render_to_response ( &#8216;consulting / categorias.html&#8217;, context, context_instance = RequestContext (request))</p>
<p>The template is in the directory of templates, and template where you want to do pagination is as follows:<br />
(% Load%) render_paginator<br />
(% If%) is_paginated<br />
    Render_paginator (% 1 3%)<br />
(% Endif%)</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

