Skip to content
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

Open
carljm opened this issue Apr 26, 2010 · 7 comments
Open

PAGINATION_INVALID_PAGE_RAISES_404 does not work #6

carljm opened this issue Apr 26, 2010 · 7 comments

Comments

@carljm
Copy link
Contributor

carljm commented Apr 26, 2010

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.

@elky
Copy link

elky commented Aug 17, 2010

just set DEBUG to False in settings.py

@diox
Copy link

diox commented Sep 23, 2010

elky: this has nothing to do with DEBUG: it will raise a 500 error (TemplateSyntaxError: Caught Http404 while rendering) even with DEBUG = False.

@satels
Copy link

satels commented Oct 18, 2011

Hm, bug fixed this??

@Miserlou
Copy link

Miserlou commented Nov 3, 2011

This ever gonna happen?

@gtaylor
Copy link

gtaylor commented Nov 3, 2011

I think this project is dead. I might recommend an active fork: https://github.com/zyga/django-pagination

@Miserlou
Copy link

Miserlou commented Nov 3, 2011

Does the Linaro fork fix this bug?

@gtaylor
Copy link

gtaylor commented Nov 3, 2011

I believe so. If not, report it to his tracker and he's good about getting stuff fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants