From 7a526156c978aa8bdf065cb9881e331c83ffa451 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sat, 14 Apr 2018 17:30:12 +0200 Subject: [PATCH] remove CHANNELS_LAYERS and move ASGI_APPLICATION to settings.py --- src/bornhack/environment_settings.py.dist | 9 --------- src/bornhack/settings.py | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/bornhack/environment_settings.py.dist b/src/bornhack/environment_settings.py.dist index 042ce179..15c4c82c 100644 --- a/src/bornhack/environment_settings.py.dist +++ b/src/bornhack/environment_settings.py.dist @@ -20,15 +20,6 @@ DEBUG={{ django_debug }} # the path to the wkhtmltopdf binary WKHTMLTOPDF_CMD="{{ wkhtmltopdf_path }}" -# set BACKEND to "asgiref.inmemory.ChannelLayer" and CONFIG to {} for local development -CHANNEL_LAYERS = { - "default": { - "BACKEND": "{{ django_channels_backend }}", - "CONFIG": {{ django_channels_config }} - }, -} - -ASGI_APPLICATION = "bornhack.routing.application" # start redirecting to the next camp instead of the previous camp after # this much of the time between the camps has passed diff --git a/src/bornhack/settings.py b/src/bornhack/settings.py index 560455b1..9283d8fe 100644 --- a/src/bornhack/settings.py +++ b/src/bornhack/settings.py @@ -10,9 +10,9 @@ def local_dir(entry): DJANGO_BASE_PATH = os.path.dirname(os.path.dirname(__file__)) WSGI_APPLICATION = 'bornhack.wsgi.application' +ASGI_APPLICATION = 'bornhack.routing.application' ROOT_URLCONF = 'bornhack.urls' - SITE_ID = 1 ADMINS = (