When testing for setting.WSGI_APPLICATION, catch AttributeError which is

raised if setting.WSGI_APPLICATION is set to None.
This commit is contained in:
Stephen Birch 2016-04-17 09:10:34 -07:00
parent 1e1954b06f
commit 2d59c189d4

View file

@ -111,8 +111,9 @@ class DDPLauncher(object):
if hasattr(settings, 'WSGI_APPLICATION'):
self.wsgi_name = settings.WSGI_APPLICATION
try:
print("-----------------------------------------------")
self.wsgi_app = import_string(self.wsgi_name)
except ImportError:
except (ImportError, AttributeError):
pass
if self.wsgi_app is None:
from django.core.wsgi import get_wsgi_application