> But getting an exception. Could you help to fix it please?
> 
> TemplateSyntaxError at /section/home
> 
> Caught an exception while rendering: 'request'
> 
> Original Traceback (most recent call last):
>   File "/opt/local/lib/python2.5/site-packages/django/template/debug.py",
> line 71, in render_node
>     result = node.render(context)
>   File 
> "/opt/local/lib/python2.5/site-packages/django_pagination-1.0.5-py2.5.egg/pagination/templatetags/pagination_tags.py",
> line 90, in render
>     page_obj = paginator.page(context['request'].page)
>   File "/opt/local/lib/python2.5/site-packages/django/template/context.py",
> line 49, in __getitem__
>     raise KeyError(key)
> KeyError: 'request'

Sounds exactly like the error suggests:  you haven't included the 
request in your rendering context.  What is your view for 
rendering this template?  Does it pass a RequestContext to 
render_to_response or does it just pass a dictionary without

   'request': request,

in it?

-tim


--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=.


Reply via email to