#5350: urlresolvers: Fallback, if urls.py don't have handle404 and friends
------------------------------------------------+---------------------------
   Reporter:  Thomas Güttler <[EMAIL PROTECTED]>  |                Owner:  
nobody                
     Status:  reopened                          |            Component:  Core 
framework        
    Version:  SVN                               |           Resolution:         
               
   Keywords:                                    |                Stage:  Design 
decision needed
  Has_patch:  1                                 |           Needs_docs:  1      
               
Needs_tests:  0                                 |   Needs_better_patch:  0      
               
------------------------------------------------+---------------------------
Comment (by Thomas Güttler <[EMAIL PROTECTED]>):

 Yes, I can use this:
 {{{
 from django.conf.urls.defaults import handler404, handler500, include,
 patterns, url
 }}}

 But this is black magic: handler404 gets only imported, but never used.
 The first
 who cares for clean code (and does not know the black magic) will remove
 the
 unneeded import of handler404 and handler500.

 That's way think this patch should be applied: If there is no handler-
 method
 in urls.py, the one from django.conf.urls.defaults should be used.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5350#comment:5>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to