/django-channels-chat

Learn about the new Django Channels by creating a simple but nice real-time chat application using WebSockets

Primary LanguagePythonMIT LicenseMIT

Django Channels Real-time Chat Example

Learn about the new Django Channels by creating a simple but nice real-time chat application using WebSockets on SourceLair (https://www.sourcelair.com)

Getting started

The easiest way to get started is by visiting https://lair.io/stacks/channels-chat and starting a new SourceLair project with a single click.

This will do the following on your behalf:

  1. create a new SourceLair Python 3.5, Django 1.10 project
  2. clone the code from this Git repository
  3. install all the needed dependencies using pip install -r requirements.txt

Following the tutorial

The repository contains different branches, used as checkpoints for following out tutorial found here: https://www.sourcelair.com/blog/articles/115/django-channels-chat

If you'd like to see the final example, just git checkout -f step/final

Tips

  • open files using QuickOpen (Ctrl + Shift + O or Cmd + Shift + O if you are on a Mac)
  • edit your files using SourceLair's fully-featured editor
  • install pip dependencies using the command palette (Ctrl + Shift + P or Cmd + Shift + P if you are on a Mac)
  • run commands (e.g. ./manage.py migrate) in SourceLair's Linux terminal
  • in case you need any help contact SourceLair using the envelope icon in the sidebar or send an email to support@sourcelair.com

License

The code provided in this template is licensed under the MIT License. For more information check out the LICENSE file.