Error1:
django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Error2:
django.core.exceptions.AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext calls at import time.
Reslove method:
import os os.environ['DJANGO_SETTINGS_MODULE'] = 'lcm.settings' from django.core.wsgi import get_wsgi_application application = get_wsgi_application()