mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-05-05 22:24:49 +00:00
When testing for setting.WSGI_APPLICATION, catch AttributeError which is
raised if setting.WSGI_APPLICATION is set to None.
This commit is contained in:
parent
1e1954b06f
commit
2d59c189d4
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue