On 10/03/2021 18.15, vijay naudiyal wrote:
Hi All,

I am a rookie and Django and trying to make chat application.

I want users to be able to send messages to each other in real-time.

I also want to create the chat rooms and provide permissions to users.

What is the best way to do it ? I have gone through some packages and blogs on this but still not sure what is the right way to do it.

Any help would be appreciated. Thanks in advance.


While creating a chat application with the help of Django in one way another is definitely possible, it might help to remember that Django is first and foremost a web development framework.

The "web" or HTTP is inherently using the client/server model meaning, a client sends a requests and the server provides a response. That is of course extremely simplified, but it does mean that creating a real time chat application doesn't fit very well into this paradigm.

In order to do something like this most of the work most likely needs to be done using javascript with either some polling or (better) using websockets.

My point is, that if you're a rookie and want to learn Django, a real time chat application is probably not the best choice as a starting point.

Something like a forum with more "static" messages would be a much better challenge as you can spend most of your time learning Django without dealing with thirdparty packages, client side javascript and such.

You would still have a great opertunity to learn about user permissions, database models etc. which Django does extremely well.

If on the other hand you want to get your hands dirty with creating a real time chat application that works in a browser, I could imagine Django more or less just getting in the way and causing confusion and you might be better of looking at client side frameworks.

That's just my opinion of course and happy to be corrected, but I hope that does help you somewhat.

Good luck no matter what.

Kind regards,

Kasper Laudrup

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d316dc09-2b4f-e5b0-febf-32576bc1b064%40stacktrace.dk.

Reply via email to