frankban / django-endless-pagination

This project is deprecated: please use https://github.com/shtalinberg/django-el-pagination
MIT License
251 stars 108 forks source link

How can i stop get request when user is not authenticated. #66

Closed amarpreetsaini closed 9 years ago

amarpreetsaini commented 10 years ago

Even though in view i did not return anything without authentication but endless pagination plugin makes a get request that causes the current html to mix up with logout page.

rizumu commented 10 years ago

One idea is to put a conditional in your template that includes the endless pagination HTML and/or JS. {% if request.user.is_authenticated %}. Make sure you have the request context process setup: " "django.core.context_processors.request".