|
@@ -33,3 +33,22 @@ For a typical Django project, invoking Daphne would look like:
|
|
|
This will start one process listening on ``127.0.0.1:8000``. It requires that
|
|
|
your project be on the Python path; to ensure that run this command from the
|
|
|
same directory as your ``manage.py`` file.
|
|
|
+
|
|
|
+.. _daphne-runserver:
|
|
|
+
|
|
|
+Integration with ``runserver``
|
|
|
+==============================
|
|
|
+
|
|
|
+Daphne provides a :djadmin:`runserver` command to serve your site under ASGI
|
|
|
+during development.
|
|
|
+
|
|
|
+This can be enabled by adding ``daphne`` to the start of your
|
|
|
+:setting:`INSTALLED_APPS` and adding an ``ASGI_APPLICATION`` setting pointing
|
|
|
+to your ASGI application object::
|
|
|
+
|
|
|
+ INSTALLED_APPS = [
|
|
|
+ "daphne",
|
|
|
+ ...,
|
|
|
+ ]
|
|
|
+
|
|
|
+ ASGI_APPLICATION = "myproject.asgi.application"
|