Skip to content

Commit ed6a3b8

Browse files
author
Matthew Fisher
committed
fix(controller): use django.conf
you should always import from django.conf rather than importing from the local package. That way, things like the @override_settings decorator in Django 1.4 will work. See also 3c6d792 and #547
1 parent c264205 commit ed6a3b8

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

controller/api/tests/test_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from django.test import TestCase
1313
from django.test.utils import override_settings
1414

15-
from deis import settings
15+
from django.conf import settings
1616

1717

1818
@override_settings(CELERY_ALWAYS_EAGER=True)

controller/api/tests/test_hooks.py

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

14-
from deis import settings
14+
from django.conf import settings
1515

1616

1717
@override_settings(CELERY_ALWAYS_EAGER=True)

controller/registry/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import importlib
22

3-
from deis import settings
3+
from django.conf import settings
44

55
# import the registry module specified in settings
66
_registry_module = importlib.import_module(settings.REGISTRY_MODULE)

controller/registry/private.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import urlparse
77
import uuid
88

9-
from deis import settings
9+
from django.conf import settings
1010

1111

1212
def publish_release(repository_path, config, tag):

0 commit comments

Comments
 (0)