Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/synw/django-rechat

A chat application for Django
https://github.com/synw/django-rechat

django-instant

Last synced: about 1 month ago
JSON representation

A chat application for Django

Awesome Lists containing this project

README

        

# Django Rechat

Chat application for Django using websockets

## Install

```
pip install django-rechat
```

Add `"rechat"` and `"instant"` to `INSTALLED_APPS` in settings and update `urls.py`:

```python
urlpatterns = [
# ...
path("instant/", include("instant.urls")),
path("rechat/", include("rechat.urls")),
]
```

Install the websockets server: [quickstart](https://github.com/synw/django-instant#install-the-websockets-server)

Create chat rooms in the admin

## Usage

An Alpinejs frontend is available. To use the rechat templates create your own index template
(here with Tailwind css classes):

```django
{% extends "base.html" %}

{% block content %}
{% include "rechat/init.html" %}



Loading rooms ..


Select a chatroom



{% endblock %}
```

## Example project

A runnable [example project](https://github.com/synw/django-rechat-example) is available

## Todo

- [x] Add a persistence layer option
- [x] Group level authorizations and rooms
- [ ] Rate limits
- [ ] Channel admin, kick/ban
- [ ] Add a presence widget to show users in the chat