summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2017-10-21 00:30:41 +0200
committerTim Graham <timograham@gmail.com>2017-10-20 18:30:41 -0400
commit0f722d865ee556816c36ae6c6bf229904b5142dd (patch)
tree01e4dbda25f74e7df98d7fe8f1e14af3908dc342
parent1a82fc245eb8ac4b131ec02a6ac3e112deb8d5a6 (diff)
Removed redundant inner imports.
-rw-r--r--django/core/management/commands/runserver.py2
-rw-r--r--django/core/management/commands/test.py3
-rw-r--r--django/urls/resolvers.py1
3 files changed, 0 insertions, 6 deletions
diff --git a/django/core/management/commands/runserver.py b/django/core/management/commands/runserver.py
index 0e71bd5b0f..d22f76054a 100644
--- a/django/core/management/commands/runserver.py
+++ b/django/core/management/commands/runserver.py
@@ -65,8 +65,6 @@ class Command(BaseCommand):
return get_internal_wsgi_application()
def handle(self, *args, **options):
- from django.conf import settings
-
if not settings.DEBUG and not settings.ALLOWED_HOSTS:
raise CommandError('You must set settings.ALLOWED_HOSTS if DEBUG is False.')
diff --git a/django/core/management/commands/test.py b/django/core/management/commands/test.py
index 4e4016ed06..f0a442cc47 100644
--- a/django/core/management/commands/test.py
+++ b/django/core/management/commands/test.py
@@ -50,9 +50,6 @@ class Command(BaseCommand):
test_runner_class.add_arguments(parser)
def handle(self, *test_labels, **options):
- from django.conf import settings
- from django.test.utils import get_runner
-
TestRunner = get_runner(settings, options['testrunner'])
test_runner = TestRunner(**options)
diff --git a/django/urls/resolvers.py b/django/urls/resolvers.py
index b41434f61c..412b7458be 100644
--- a/django/urls/resolvers.py
+++ b/django/urls/resolvers.py
@@ -63,7 +63,6 @@ class ResolverMatch:
@functools.lru_cache(maxsize=None)
def get_resolver(urlconf=None):
if urlconf is None:
- from django.conf import settings
urlconf = settings.ROOT_URLCONF
return URLResolver(RegexPattern(r'^/'), urlconf)