django-channels-example
django-channels-example copied to clipboard
Introduction to Django Channels
Django Channels Tutorial
Want to learn how to build this?
Check out the tutorial.
Want to use this project?
-
Fork/Clone
-
Create and activate a virtual environment:
$ python3 -m venv venv && source venv/bin/activate
-
Install the requirements:
(venv)$ pip install -r requirements.txt
-
Apply the migrations:
(venv)$ python manage.py migrate
-
Start a Redis server for backing storage:
(venv)$ docker run -p 6379:6379 -d redis:5
-
Run the server:
(venv)$ python manage.py runserver
-
By default, only authenticated users can chat. To create a test user:
(venv)$ python manage.py createsuperuser
-
Log in using your newly created user at http://localhost:8000/admin/.
-
Navigate to http://localhost:8000/chat/.