Skip to main content

A responsive Chat web app package for Django 2.0+

Project description

=====
Chatter
=====

Chatter is a simple chat application based on Django Channels 2.0.
The goal of this app is to turn it into a package that can be easily
inserted into Django web apps for developers to use.

Note: This component depends on Django Channels, so I recommend getting
familiar with and installing Channels's server as your dev server from
https://channels.readthedocs.io/en/latest/installation.html



Quick start
-----------

1. Install django-channels from the installation site

2. Add `chat` to your INSTALLED_APPS setting like this (please make sure it's
below your project's appname)::

INSTALLED_APPS = [
...
'chat',
...
]

3. Include the polls URLconf in your project urls.py like this::

path('chat/', include('chat.urls')),

4. Add chat to your '<project_name>/routing.py' by adding the following lines::
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
import chat.routing

application = ProtocolTypeRouter({
'websocket': AuthMiddlewareStack(
URLRouter(
chat.routing.websocket_urlpatterns
)
)
})


5. Run `python manage.py migrate` to create the chat models.

6. Start the development server and visit http://127.0.0.1:8000/chat/ to see
the interface. You can type in a username to find the corresponding
user and open a chatroom with them.

And you're good to go! If you want to contribute to the development of this app,
head over to https://github.com/dibs-devs/chatter . Thank you!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-chatter-0.0.4.tar.gz (13.5 kB view details)

Uploaded Source

File details

Details for the file django-chatter-0.0.4.tar.gz.

File metadata

  • Download URL: django-chatter-0.0.4.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for django-chatter-0.0.4.tar.gz
Algorithm Hash digest
SHA256 784201c36b11d7ddaacd7f11e859543861fc3972adc1bc953fac8f76b076bef0
MD5 336c816fa5e8b8f0a39edfce065581b3
BLAKE2b-256 253d4a8a2ec8640044c2bff8d6687f5fa46f7bb8e59a99f63c2c05056f23a5b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page