tickets: 16788
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16788 | 2011-09-09 20:31:07 | 2011-09-13 18:57:56 | 2022-03-06 04:04:08.361101 | Accepted | closed | Core (Other) | Cleanup/optimization | Normal | 1.3 | duplicate | remove import * from urls.py | 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 * | draix | wim@go2people.nl | 1 | 1 | 0 | 0 | 0 | 0 |