mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-03-16 22:40:24 +00:00
Allow dddp to use the django defaults if settings.WSGI_APPLICATION
exists but is set to None.
This commit is contained in:
parent
1e1954b06f
commit
ec94bb079a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue