django-endless-pagination icon indicating copy to clipboard operation
django-endless-pagination copied to clipboard

'QueryDict' object has no attribute 'REQUEST'

Open ghost opened this issue 11 years ago • 1 comments

Hi, i installed endless pagination but i have some kind of problem.

What i done:

  1. Installed the last version with pip
  2. Defined 'endless_pagination' at settings on INSTALLED_APPS
  3. Added django.core.context_processors.request at TEMPLATE_CONTEXT_PROCESSORS
  4. Modified the template:

{% load endless %} {% paginate anuncios %} {% for dato in anuncios %} {# my code ..... #} {% empty %} Message. {% endfor %} {% show_pages %}

But, when i go the view where the items should be listed i see the following error:

'QueryDict' object has no attribute 'REQUEST'

The problem line: {% paginate anuncios %}

Any ideas why it is this happening ??? Thanks a lot !

ghost avatar May 08 '14 05:05 ghost

I solved the issue, i was using the request reserved name.

Bye !

cbanicolas avatar May 08 '14 07:05 cbanicolas