From ec94bb079a3230ac75d57e04678643eb5da34e9f Mon Sep 17 00:00:00 2001 From: Stephen Birch Date: Tue, 19 Apr 2016 08:21:30 -0700 Subject: [PATCH] Allow dddp to use the django defaults if settings.WSGI_APPLICATION exists but is set to None. --- dddp/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dddp/main.py b/dddp/main.py index dd8d12c..9d43744 100644 --- a/dddp/main.py +++ b/dddp/main.py @@ -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)