Re: Improve Error Handlers

2008-04-13 Thread [EMAIL PROTECTED]
It says they go in the URLconf in the request/response page but not the UR conf page. http://www.djangoproject.com/documentation/request_response/#the-404-page-not-found-view --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Improve Error Handlers

2008-04-12 Thread Brian Beck
On Apr 12, 9:42 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Fri, Apr 11, 2008 at 3:29 PM, Brian Beck <[EMAIL PROTECTED]> wrote: > >  (Replying to myself.)  Looking at the code I see they're just urlconf > >  module globals.  I assume they only take effect in ROOT_URLCONF? > > Documentation

Re: Improve Error Handlers

2008-04-12 Thread James Bennett
On Fri, Apr 11, 2008 at 3:29 PM, Brian Beck <[EMAIL PROTECTED]> wrote: > (Replying to myself.) Looking at the code I see they're just urlconf > module globals. I assume they only take effect in ROOT_URLCONF? Documentation here: http://www.djangoproject.com/documentation/url_dispatch/#handler

Re: Improve Error Handlers

2008-04-11 Thread Brian Beck
On Apr 11, 4:26 pm, Brian Beck <[EMAIL PROTECTED]> wrote: > Just a documentation note -- I can't really tell how to use those > features from this page.  Are those keyword arguments to urlpatterns? > Functions I call in the pattern list?  An example would be helpful. (Replying to myself.) Looki

Re: Improve Error Handlers

2008-04-11 Thread Brian Beck
On Apr 11, 2:51 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On Fri, Apr 11, 2008 at 11:34 AM, David Cramer <[EMAIL PROTECTED]> wrote: > >  404_HANDLER = 'django.generic.views.errors.404' > >  500_HANDLER = 'django.generic.views.errors.500' > > /me jumps in time machine: > > http://www.dja

Re: [Proposal] Improve Error Handlers

2008-04-11 Thread Jacob Kaplan-Moss
On Fri, Apr 11, 2008 at 11:34 AM, David Cramer <[EMAIL PROTECTED]> wrote: > 404_HANDLER = 'django.generic.views.errors.404' > 500_HANDLER = 'django.generic.views.errors.500' /me jumps in time machine: http://www.djangoproject.com/documentation/url_dispatch/#handler404 http://www.djangoproject.

Re: Improve Error Handlers

2008-04-11 Thread David Cramer
Alright, it seems this already sort of exists, ignore me ;) On Apr 11, 11:34 am, David Cramer <[EMAIL PROTECTED]> wrote: > I'd like to offer a solution to many problems I've had, directing the > error handlers where I want them to go: > > - I want to be able to choose what templates they render >

[Proposal] Improve Error Handlers

2008-04-11 Thread David Cramer
I'd like to offer a solution to many problems I've had, directing the error handlers where I want them to go: - I want to be able to choose what templates they render - I want them to be able to work with Jinja ;) I was thinking that something along the lines of this could be done: 404_HANDLER