Chat Application in Django

102 views
Skip to first unread message

vijay naudiyal

unread,
Mar 10, 2021, 12:16:38 PM3/10/21
to django...@googlegroups.com
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.

Have a nice day.

Regards
Vijay

sakshi jain

unread,
Mar 10, 2021, 12:18:10 PM3/10/21
to django...@googlegroups.com
I'm intrested

--
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/CABm_SG2w-pR3f8SfxT-bjXmx54gc-%3DB%3DNLhe1FJWixmWjSEoEg%40mail.gmail.com.

sakshi jain

unread,
Mar 10, 2021, 12:18:54 PM3/10/21
to django...@googlegroups.com
plz include me

Ryan Nowakowski

unread,
Mar 10, 2021, 12:43:24 PM3/10/21
to django...@googlegroups.com
On Wed, Mar 10, 2021 at 10:45:13PM +0530, vijay naudiyal wrote:
> 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.

Channels is probably the currently recommended approach:

https://channels.readthedocs.io/en/stable/tutorial/index.html

Kasper Laudrup

unread,
Mar 10, 2021, 12:49:33 PM3/10/21
to django...@googlegroups.com
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

Kasper Laudrup

unread,
Mar 10, 2021, 12:50:38 PM3/10/21
to django...@googlegroups.com
On 10/03/2021 18.17, sakshi jain wrote:
> I'm intrested
>

"intrested" in what?

Do you ever read what you respond to?

Kasper Laudrup

unread,
Mar 10, 2021, 1:00:21 PM3/10/21
to django...@googlegroups.com
On 10/03/2021 18.17, sakshi jain wrote:
> plz include me
>

Include you in what?

Remember to take your medicine before posting online, otherwise people
might think you're simply being retarded.

(Look at this guys post history before blaming me)

sakshi jain

unread,
Mar 10, 2021, 1:27:01 PM3/10/21
to django...@googlegroups.com
in ur project

--
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.

Kasper Laudrup

unread,
Mar 10, 2021, 1:36:20 PM3/10/21
to django...@googlegroups.com
On 10/03/2021 19.25, sakshi jain wrote:
> in ur project
>

Which project?

sakshi jain

unread,
Mar 10, 2021, 1:37:59 PM3/10/21
to django...@googlegroups.com
ur chat appilication in django

--
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.

Kunal Solanke

unread,
Mar 10, 2021, 1:39:12 PM3/10/21
to django...@googlegroups.com

sakshi jain

unread,
Mar 10, 2021, 1:42:01 PM3/10/21
to django...@googlegroups.com

Kunal Solanke

unread,
Mar 10, 2021, 1:42:03 PM3/10/21
to django...@googlegroups.com
Ig there is some confusion here,So op asked que about chat ,kasper and one other guy answered it.There was no mentions of project or someone looking for team members. 

sakshi jain

unread,
Mar 10, 2021, 1:46:19 PM3/10/21
to django...@googlegroups.com
shut up u owl I know its not want team member but I want to help BcoZ I'm working on same project

Kasper Laudrup

unread,
Mar 10, 2021, 1:50:18 PM3/10/21
to django...@googlegroups.com
On 10/03/2021 19.36, sakshi jain wrote:
> ur chat appilication in django
>

If you don't understand how something works, in this case either a forum
like this one, the English language or basic human interaction, then
there's nothing wrong in asking for clarification.

Confirming that you lack this basic understanding like you're doing now,
just confirms other peoples initial impression that you might simply be
an idiot or a troll.

sakshi jain

unread,
Mar 10, 2021, 1:52:10 PM3/10/21
to django...@googlegroups.com
shut up I know everthing ...U rascal

--
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.

Kasper Laudrup

unread,
Mar 10, 2021, 1:57:24 PM3/10/21
to django...@googlegroups.com
On 10/03/2021 19.51, sakshi jain wrote:
> shut up I know everthing ...U rascal
>

An idiot believes he knows everything, the genius admits he knows nothing.

Q.E.D. Sakshi Jain is an idiot.

(Apologies to everyone else, I know I should how stopped a long time ago)

sakshi jain

unread,
Mar 10, 2021, 1:58:32 PM3/10/21
to django...@googlegroups.com
Ur idot

--
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.

ajaykumar...@gmail.com

unread,
Mar 10, 2021, 3:13:39 PM3/10/21
to Django users
Well ... well .. well  rookie you are rocking here, any ways.... That seems to be interesting I haven't tried this before...  Good luck..... I'll get back to you if i found something for you. :) 

Desh Deepak

unread,
Mar 10, 2021, 3:55:25 PM3/10/21
to django...@googlegroups.com
I also working chat application

Rajesh Ranjan_067

unread,
Mar 10, 2021, 5:24:02 PM3/10/21
to django...@googlegroups.com
Dear sakshi mam may I join you, as you are doing on chat app

vijay naudiyal

unread,
Mar 10, 2021, 9:36:04 PM3/10/21
to django...@googlegroups.com
Guys,

Pls no personal attacks. Lets keep the thread meaningful.

i am really a rookie in this, started Django as a hobby during the Covid times, but i am glad i have been consistent in my learning and have been continuously working on projects that matters to me. if people are interested we can connect together, that will surely speed up our learning.

Of my little research i have found channels and some Django packages are a good way. I am starting with Django Private Chat package, i will be trying the channels approach after this.

if someone is interested to collaborate they can connect to me at vijaynau...@gmail.com

Have a good day.

Vijay

Gabriel Araya Garcia

unread,
Mar 10, 2021, 9:51:43 PM3/10/21
to django...@googlegroups.com
Could you give me some hosting name where I may test (free) my django project. My database is MySql. In PythonAnywhere they accepts only one app (already I've one) and Heroku only run with Postgresql.

Thanks,

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos
from Santiago of Chile




--
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.

Kasper Laudrup

unread,
Mar 10, 2021, 9:53:53 PM3/10/21
to django...@googlegroups.com
On 11/03/2021 03.34, vijay naudiyal wrote:
>
> Pls no personal attacks. Lets keep the thread meaningful.
>

I don't hope you feel attacked by me in any way, that has certainly not
been my intention.

> i am really a rookie in this, started Django as a hobby during the Covid
> times, but i am glad i have been consistent in my learning and have been
> continuously working on projects that matters to me. if people are
> interested we can connect together, that will surely speed up our learning.
>

It was hard to tell from your initial
OpenPGP_0xE5D9CAC64AAA55EB.asc
OpenPGP_signature

Kasper Laudrup

unread,
Mar 10, 2021, 9:57:46 PM3/10/21
to django...@googlegroups.com
On 11/03/2021 03.34, vijay naudiyal wrote:
>
> Pls no personal attacks. Lets keep the thread meaningful.
>

I don't hope you feel attacked by me in any way, that has certainly not
been my intention.

> i am really a rookie in this, started Django as a hobby during the Covid
> times, but i am glad i have been consistent in my learning and have been
> continuously working on projects that matters to me. if people are
> interested we can connect together, that will surely speed up our learning.
>

It was hard to tell from your initial post what your level of experience
was. My point was that a chat application with channels is probably not
very good for a first Django project, but it seems like you have plenty
of experience already for experimenting with developing a project like this.

Good to hear you are spending these times on something meaningful and
constructive. Best of luck with your chat project. Hope you'll consider
sharing it once you feel like you have something to share.

Kind regards,

Kasper Laudrup

Ps. Sorry for my previous half written message. I hit the wrong keys by
accident :-(
OpenPGP_0xE5D9CAC64AAA55EB.asc
OpenPGP_signature

vijay naudiyal

unread,
Mar 10, 2021, 10:42:02 PM3/10/21
to django...@googlegroups.com
Hi Kasper,

Sure I am not offended and thank you for asking that. I will be glad to share the project once completed.

Regards
Vijay



--
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.

Ronnie Atuhaire

unread,
Mar 12, 2021, 5:40:59 PM3/12/21
to django...@googlegroups.com
I just like how the thread ended

Eduardo Agreda López

unread,
Mar 12, 2021, 6:48:26 PM3/12/21
to Django users

Create your chat application with django-channels module
Reply all
Reply to author
Forward
0 new messages