Skip to content

Code accompanying "Django Channels" blog post and screencast

License

Notifications You must be signed in to change notification settings

arocks/channels-example

Repository files navigation

Django Channels Examples

Examples of asynchronous projects with Django Channels 2. Check out:

Setup

Use the pipenv tool

$ pip install pipenv
$ cd <proj-dir>
$ pipenv install

Start the redis server (and make sure it is running in the background)

$ redis-server

Now you need to enter the pipenv shell to run the examples:

$ pipenv shell
$ python manage.py migrate
$ python manage.py createsuperuser
$ python manage.py runserver

You should see no notifications. Now open another browser window and log into Django admin. Add a new user. If you look at the first browser windows, then you should see the new user notification.

Other Examples

Check out other branches of this git repository to see the other examples:

About

Code accompanying "Django Channels" blog post and screencast

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published