Removed redundant inner imports.

This commit is contained in:
Mariusz Felisiak 2017-10-21 00:30:41 +02:00 committed by Tim Graham
parent 1a82fc245e
commit 0f722d865e
3 changed files with 0 additions and 6 deletions

View File

@ -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.')

View File

@ -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)

View File

@ -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)