mirror of https://github.com/django/django.git
Removed redundant inner imports.
This commit is contained in:
parent
1a82fc245e
commit
0f722d865e
|
@ -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.')
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue