Django with node js

86 views
Skip to first unread message

Arindam sarkar

unread,
Jul 18, 2016, 4:58:51 PM7/18/16
to django...@googlegroups.com

I have a situation where I want to use django with node JS my problem is how do I share user session data among django and notes server?

ludovic coues

unread,
Jul 18, 2016, 5:10:16 PM7/18/16
to django...@googlegroups.com
It depends on how django and node JS interact together, what they are
used for, etc...

2016-07-18 18:58 GMT+02:00 Arindam sarkar <asark...@gmail.com>:
> I have a situation where I want to use django with node JS my problem is how
> do I share user session data among django and notes server?
>
> --
> 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 post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGnF%2BrBw%3D-OZsSFcqZysVGS1pt3Ay10mix_2g%2BkD-PdzOeL8bQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42

Arindam sarkar

unread,
Jul 18, 2016, 5:16:36 PM7/18/16
to django...@googlegroups.com

I want node server to provide notifications for django request.user ... means node server would updated notifications in real time using socket.io for the logged in user


ludovic coues

unread,
Jul 18, 2016, 6:34:24 PM7/18/16
to django...@googlegroups.com
for that job, I would use two interface on your node.js app, one
public offering the socker.io connection, one local to the server
listening for event from django.

The js on the webpage connect to the public interface of the node.js app.
The local interface don't need socket.io but you might want to put
celery between django and node.js to have a non-blocking interface on
the django side
> https://groups.google.com/d/msgid/django-users/CAGnF%2BrA%3DRY9TqMVtn6eBUhv_2ghQ8r4065BXHZbcxf4ZMeE6bw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages