diff --git a/docs/tutorial/part_1.rst b/docs/tutorial/part_1.rst index 327ae68b..c23fd8a7 100644 --- a/docs/tutorial/part_1.rst +++ b/docs/tutorial/part_1.rst @@ -81,6 +81,23 @@ following contents: urls.py wsgi.py +Updating your settings +--------------------- + +We need to add a few lines to ``settings.py`` to let Django know that it should use Daphne. + +.. code-block:: python + + CHANNEL_LAYERS = { + 'default': { + 'BACKEND': "channels.layers.InMemoryChannelLayer" + } + } + + WSGI_APPLICATION = 'um_be.wsgi.application' + ASGI_APPLICATION = 'um_be.asgi.application' + + Creating the Chat app ---------------------