-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PAGINATION_INVALID_PAGE_RAISES_404 does not work #6
Comments
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. |
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.
The text was updated successfully, but these errors were encountered: