Chat app using django

108 views
Skip to first unread message

Lakshyaraj Dash

unread,
Jul 19, 2022, 8:41:58 PM7/19/22
to django...@googlegroups.com
Hello guys!
I'm having a discussion website in django with some sort of user authentication and I want to inject chat app with rooms made by the users themselves. I don't want any js framework in the frontend. Just tell me how to make this type of chat app using django (not Django channels).

Thanks and regards
Lakshyaraj Dash

Hella thor

unread,
Jul 19, 2022, 10:51:40 PM7/19/22
to django...@googlegroups.com
🤔 在前端没有JS的情况下,大概率是无法实现的,如果可以请告诉我方法。

Lakshyaraj Dash <dashlaksh...@gmail.com> 于2022年7月20日周三 08:41写道:
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF7qQgD7Ryvnp%2BPp74cs6aogFz32TQiKsH71X3WGcnrPG2FDdQ%40mail.gmail.com.

Abdul Qoyyuum

unread,
Jul 19, 2022, 10:58:36 PM7/19/22
to django...@googlegroups.com
Hi Lakshyaraj,

Chat app relies on quickly sending data between parties. You will need to build it with websockets and a redis database to publish and subscribe new event messages. However, this is basically reinventing the wheel versus using one that already exists (i.e. Django Channels). But all the best to you.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF7qQgD7Ryvnp%2BPp74cs6aogFz32TQiKsH71X3WGcnrPG2FDdQ%40mail.gmail.com.


--
Abdul Qoyyuum Bin Haji Abdul Kadir

Lakshyaraj Dash

unread,
Jul 20, 2022, 7:23:08 AM7/20/22
to django...@googlegroups.com
Ok I understand but currently I'm using postgresql in my app. So I need it for that. Please help me to inject the websockets in django as I'm very much new to it *not websockets* but to *integration of websockets in django*.

Abdul Qoyyuum

unread,
Jul 20, 2022, 7:43:12 AM7/20/22
to django...@googlegroups.com
Please have a look at how Django channels implements the chat app. https://github.com/narrowfail/django-channels-chat

Lakshyaraj Dash

unread,
Jul 20, 2022, 8:00:27 AM7/20/22
to django...@googlegroups.com
Great thanks Abdul. I can now easily build a chat app for my forum app.

carlos

unread,
Jul 20, 2022, 8:45:59 PM7/20/22
to django...@googlegroups.com
Hello, this tutorial is very simple and explain complete chat example with django channels


Cheers 



--
att.
Carlos Rocha

Ryan Nowakowski

unread,
Aug 25, 2022, 11:25:31 PM8/25/22
to django...@googlegroups.com
On Wed, Jul 20, 2022 at 06:11:08AM +0530, Lakshyaraj Dash wrote:
> I'm having a discussion website in django with some sort of user
> authentication and I want to inject chat app with rooms made by the users
> themselves. I don't want any js framework in the frontend. Just tell me how
> to make this type of chat app using django (not Django channels).

Instead of using Channels, you can HTTP poll. You can always migrate to
Channels later.
Reply all
Reply to author
Forward
0 new messages