Allow dddp to use the django defaults if settings.WSGI_APPLICATION

exists but is set to None.
This commit is contained in:
Stephen Birch 2016-04-19 08:21:30 -07:00
parent 1e1954b06f
commit ec94bb079a

View file

@ -108,7 +108,7 @@ class DDPLauncher(object):
# use settings.WSGI_APPLICATION or fallback to default Django WSGI app
from django.conf import settings
self.wsgi_app = None
if hasattr(settings, 'WSGI_APPLICATION'):
if hasattr(settings, 'WSGI_APPLICATION') and settings.WSGI_APPLICATION:
self.wsgi_name = settings.WSGI_APPLICATION
try:
self.wsgi_app = import_string(self.wsgi_name)