Demo app with Django Channels to control Lights over websockets. Made for PyStPete meetup(https://www.meetup.com/Saint-Petersburg-Python-Meetup/).
Python CSS HTML JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
core
docs
lights
.editorconfig
.gitignore
LICENSE
Procfile
README.md
app.json
manage.py
requirements.txt
runtime.txt

README.md

Django Channels Light Control

Demo

Demo app using django channels to control(turn on and off) some lights using the WebSockets protocol.

This was created for Python St. Petersburg (https://www.meetup.com/Saint-Petersburg-Python-Meetup/).

Demo

Credentials:

  • Username: admin
  • Password: th3n0rthr3m3mb3rs

Slides

Requirements

  • Python 3.5+
  • PostgreSQL
  • Redis

Running locally

$ pip install -r requirements.txt
$ ./manage.py runserver

Go to: http://localhost:8000

Create a few lights on the Django Admin(http://localhost:8000/admin) and start controlling it.

That's all!

License

MIT