Django one-to-one Websocket-based Asyncio-handled chat, developed by Bearle team
Project description
Django one-to-one Websocket-based Asyncio-handled chat, developed by Bearle team
Documentation
The full documentation is at https://django-private-chat.readthedocs.io.
Quickstart
Install django-private-chat:
pip install django-private-chat
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'django_private_chat.apps.DjangoPrivateChatConfig',
...
)
Add the server & port for your asyncio server to settings:
CHAT_WS_SERVER_HOST = 'localhost'
CHAT_WS_SERVER_PORT = 5002
It is possible to change messages datetime format using
DATETIME_FORMAT
Add django-private-chat’s URL patterns:
from django_private_chat import urls as django_private_chat_urls
urlpatterns = [
...
url(r'^', include(django_private_chat_urls)),
...
]
Now you can start a dialog using
/dialogs/some_existing_username
Features
Uses current app model (get_user_model() and settings.AUTH_USER_MODEL)
Translatable (uses ugettext and {% trans %} )
One-to-one user chat
Works using WebSockets
Displays online/offline status
Display typing/not typing status
Soft deletable message model - be sure to keep messages to comply with message-keeping laws
TODO: add a dialog to the list when new one started
TODO: add user-not-found and other alerts
TODO: possible Redis backend intergration
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
Credits
Tools used in rendering this package:
History
0.1.0 (2017-02-10)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-private-chat-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ac455621660af4ca9b95a5dcfa0dd0b2bcfa978e725714764480ee50abc8189 |
|
MD5 | e2fc07336988876c3a37c11adfdba8bc |
|
BLAKE2b-256 | 9dbaa47900b47795c7390739d57a9c9dea4019e544cea1eca7a1c9f6d4d5a14c |
Hashes for django_private_chat-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be930b441d30cb8972ad461b8fe707a2f6a64cf088fa0f42d590568474ccddb9 |
|
MD5 | f8a64d66f6fdbe6aa9eca94c614efea5 |
|
BLAKE2b-256 | e71c91493c723e3dd61dc92a55864e9419114996795906502f06e462a03bc592 |