#16079 closed Cleanup/optimization (fixed)
Clarify that handler404 and handler500 only applies to project
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | martin@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
The documentation states that you can define handler404 and handler500 in your URLconf, but it doesn't say that this only works in the project-level URLconf, not inside an app.
I think it should be mentioned in these sections:
http://docs.djangoproject.com/en/dev/topics/http/urls/#handler404
http://docs.djangoproject.com/en/dev/intro/tutorial03/#write-a-404-page-not-found-view
There are several questions about this at Stack Overflow (for example http://stackoverflow.com/questions/3309076/is-it-possible-to-include-a-custom-404-view-for-a-django-app-without-changing-any), so if the documentation could just say that it's impossible, it would save time for a lot of people.
Attachments (1)
Change History (10)
comment:1 by , 14 years ago
Has patch: | set |
---|---|
Needs documentation: | set |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 14 years ago
Has patch: | unset |
---|---|
Needs documentation: | unset |
UI/UX: | unset |
comment:3 by , 14 years ago
Cc: | added |
---|---|
Has patch: | set |
comment:6 by , 13 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I disagree. [16449] does not address this problem. The documentation still doesn't say anything about that the handlers only work in the project-level URLconf.
comment:7 by , 13 years ago
Patch needs improvement: | set |
---|
Well, it now says that the handlers have to be declared in the "root URLconf". More clarification can always be added. In that case, the same type of clarification should be made for handler500
. Please also generate your patch from the root of the source tree. Thanks!
Where is the patch? Resetting flags.