diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2017-10-21 00:30:41 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-20 18:30:41 -0400 |
| commit | 0f722d865ee556816c36ae6c6bf229904b5142dd (patch) | |
| tree | 01e4dbda25f74e7df98d7fe8f1e14af3908dc342 | |
| parent | 1a82fc245eb8ac4b131ec02a6ac3e112deb8d5a6 (diff) | |
Removed redundant inner imports.
| -rw-r--r-- | django/core/management/commands/runserver.py | 2 | ||||
| -rw-r--r-- | django/core/management/commands/test.py | 3 | ||||
| -rw-r--r-- | django/urls/resolvers.py | 1 |
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) |
