#11013: Named imports in urls
-------------------------------------+--------------------------------------
          Reporter:  gruszczy        |         Owner:  nobody    
            Status:  reopened        |     Milestone:            
         Component:  Core framework  |       Version:  1.1-beta-1
        Resolution:                  |      Keywords:            
             Stage:  Unreviewed      |     Has_patch:  0         
        Needs_docs:  0               |   Needs_tests:  0         
Needs_better_patch:  0               |  
-------------------------------------+--------------------------------------
Comment (by lacker):

 Wow, I ran into this too. I was quite surprised that "from
 django.conf.urls.defaults import *" has side effects involving functions
 that are imported but not visibly used. It seems unpythonic, since the
 standard python advice is to avoid importing * whenever possible. For
 example, whenever I write code in my urls.py, I run the risk of squashing
 or accidentally referring to variables that got introduced in the import.
 Would it be possible to make this work without the import *?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11013#comment:4>
Django <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