django-pagination
django-pagination copied to clipboard
PAGINATION_INVALID_PAGE_RAISES_404 does not work
If you set PAGINATION_INVALID_PAGE_RAISES_404 to True, the autopaginate call does indeed raise Http404, but this is then caught by a catchall "except Exception" in Django's template system, resulting in a debug page, or a 500 error in production.
Not sure what the solution is here; short of patching Django, seems like template tags can't raise 404.
just set DEBUG to False in settings.py
elky: this has nothing to do with DEBUG: it will raise a 500 error (TemplateSyntaxError: Caught Http404 while rendering) even with DEBUG = False.
Hm, bug fixed this??
This ever gonna happen?
I think this project is dead. I might recommend an active fork: https://github.com/zyga/django-pagination
Does the Linaro fork fix this bug?
I believe so. If not, report it to his tracker and he's good about getting stuff fixed.