(Deprecated - Please check out https://github.com/Bearle/django_private_chat2) Django one-to-one Websocket-based Asyncio-handled chat, developed by Bearle team
There were two bugs I found in the example project:
The settings.py imported the packaging module and the requirements.txt did not install packaging
There was a reverse match error on the dialogue detail page because a variable was defined in javascript but not in the django templating langue.
For the second one, I just took the django templating language url tag out of the javascript because it would be hard to find a solutions using that tag. Instead, I used a relative url which, unlike the url tag, could fail if the urls.py gets updated. I think that that risk of failure is worth not having to exchange variables between javascript and django templating language.
Also I fixed a bug in one of the tests I changed in #2 which had a bug to do with zero padding of datetimes.
There were two bugs I found in the example project:
settings.py
imported the packaging module and therequirements.txt
did not install packagingFor the second one, I just took the django templating language
url
tag out of the javascript because it would be hard to find a solutions using that tag. Instead, I used a relative url which, unlike theurl
tag, could fail if theurls.py
gets updated. I think that that risk of failure is worth not having to exchange variables between javascript and django templating language.Also I fixed a bug in one of the tests I changed in #2 which had a bug to do with zero padding of
datetimes
.