#16788: remove import * from urls.py
----------------------------------+-------------------------------
 Reporter:  wim@…                 |          Owner:  nobody
     Type:  Cleanup/optimization  |         Status:  new
Milestone:                        |      Component:  Uncategorized
  Version:  1.3                   |       Severity:  Normal
 Keywords:                        |   Triage Stage:  Unreviewed
Has patch:  0                     |  Easy pickings:  0
    UI/UX:  0                     |
----------------------------------+-------------------------------
 Let's face it: import * is ugly and breaks guidelines on what is good
 practice in Python code. (And pylint complains about it. :) ) Let's send
 them into oblivion!

 import patterns
 or
 import patterns, urls
 will do in most cases :)

 contrib/admindocs/urls.py:from django.conf.urls.defaults import *
 contrib/auth/urls.py:from django.conf.urls.defaults import *
 contrib/comments/urls.py:from django.conf.urls.defaults import *
 contrib/databrowse/urls.py:from django.conf.urls.defaults import *
 contrib/flatpages/urls.py:from django.conf.urls.defaults import *
 contrib/staticfiles/urls.py:from django.conf import settings
 contrib/staticfiles/urls.py:from django.conf.urls.static import static

 contrib/auth/tests/urls.py:from django.conf.urls.defaults import patterns,
 url
 contrib/flatpages/tests/urls.py:from django.conf.urls.defaults import *
 contrib/formtools/tests/urls.py:from django.conf.urls.defaults import *
 contrib/messages/tests/urls.py:from django.conf.urls.defaults import *
 contrib/sitemaps/tests/urls.py:from django.conf.urls.defaults import *

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16788>
Django <https://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