django-book icon indicating copy to clipboard operation
django-book copied to clipboard

Chapter 3 -- A quick note about 404 errors:

Open esacteksab opened this issue 12 years ago • 1 comments

django-book/en/_build/html/chapter03.html#a-quick-note-about-404-errors

Numerous mentions of 404

I wonder if some of this should be tied in?

https://docs.djangoproject.com/en/1.4/releases/1.4-alpha-1/#django-conf-urls-defaults https://docs.djangoproject.com/en/dev/howto/error-reporting/#errors https://docs.djangoproject.com/en/1.4/topics/http/urls/#error-handling << FWIW HTTP 403 is new in 1.4

esacteksab avatar Oct 06 '12 05:10 esacteksab

It looks like Appendix G (and H, which seems to be a dupe) covers Requests in more detail. I would say it might be worth extending the Appendix G to cover basic HTTP status codes and the 403 response, when/why to use it vs 404.

And maybe how to customize it? It seems like the django docs are sparse on that: https://docs.djangoproject.com/en/1.4/topics/http/views/#http-forbidden-view

I like using a themed 403 handler as an error handled for some specific views sometimes.

askedrelic avatar Oct 09 '12 05:10 askedrelic