Skip to content

Commit 715fe28

Browse files
committed
Flat is better than nested.
1 parent ac1d552 commit 715fe28

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

debug_toolbar/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from django.utils.encoding import force_text
1111

1212
from debug_toolbar.toolbar import DebugToolbar
13-
from debug_toolbar.utils import settings as dt_settings
13+
from debug_toolbar import settings as dt_settings
1414

1515
_HTML_TYPES = ('text/html', 'application/xhtml+xml')
1616
# Handles python threading module bug - http://bugs.python.org/issue14308

debug_toolbar/panels/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from debug_toolbar.panels import DebugPanel
1717
from debug_toolbar.utils import (tidy_stacktrace, render_stacktrace,
1818
get_template_info, get_stack)
19-
from debug_toolbar.utils import settings as dt_settings
19+
from debug_toolbar import settings as dt_settings
2020

2121

2222
cache_called = Signal(providing_args=[

debug_toolbar/panels/sql/tracking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from django.utils import six
1212

1313
from debug_toolbar.utils import tidy_stacktrace, get_template_info, get_stack
14-
from debug_toolbar.utils import settings as dt_settings
14+
from debug_toolbar import settings as dt_settings
1515

1616

1717
class SQLQueryTriggered(Exception):

debug_toolbar/utils/settings.py renamed to debug_toolbar/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
# Always import this module as follows:
8-
# from debug_toolbar.utils import settings [as dt_settings]
8+
# from debug_toolbar import settings [as dt_settings]
99

1010
# Don't import directly CONFIG or PANELs, or you will miss changes performed
1111
# with override_settings in tests.

debug_toolbar/toolbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from django.utils.datastructures import SortedDict
1414
from django.utils.importlib import import_module
1515

16-
from debug_toolbar.utils import settings as dt_settings
16+
from debug_toolbar import settings as dt_settings
1717

1818

1919
class DebugToolbar(object):

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Refresh the debug toolbar's configuration when overriding settings.
22

33
from debug_toolbar.toolbar import DebugToolbar
4-
from debug_toolbar.utils import settings as dt_settings
4+
from debug_toolbar import settings as dt_settings
55

66
from django.dispatch import receiver
77
from django.test.signals import setting_changed

0 commit comments

Comments
 (0)