[KolPy] Running tornado with django

BibhasD me at bibhas.in
Wed Sep 18 19:44:16 CEST 2013


"Talk to it from Django" is kind of misleading actually.

Tornado comes with a WebSocketHandler. So you can use that and run
Tornado as a websocket server. And then connect to it from any
Javascript code(in this case maybe the JS you're using on your DJango
app), and then talk to it.

On Wednesday 18 September 2013 11:09 PM, Mrinmoy Das wrote:
> Thanks for the tip. :)
> Anyway "use tornado as websocket server and talk to it from django." can I
> get more explanation on this please? :)
>
>
> Mrinmoy Das
> http://www.goromlagche.in/
>
>
> On Wed, Sep 18, 2013 at 10:39 PM, BibhasD <me at bibhas.in> wrote:
>
>>  You can use this method(
>> http://ultimatenerdiness.com/2012/10/14/django-and-tornado/) that serves
>> django using tornado. Benefit of it is that there is only one server.
>> Handle what you want with tornado, rest is handled by Django via WSGI.
>>
>> Or you can build two apps, one using Django, another using tornado. Then
>> use them together. I'm still not sure how you want to use it, but if you
>> want to build the chat app totally separately, you can build it on tornado
>> and serve from a different supdomain or use tornado as websocket server and
>> talk to it from django.
>>
>>
>> On Wednesday 18 September 2013 10:30 PM, Mrinmoy Das wrote:
>>
>> Bibhash,
>>
>> I am trying to build a chat application asynchronously which will be part
>> of a django project and I think the solution is to run a django application
>> over tornado server.
>>
>> Mrinmoy Dashttp://www.goromlagche.in/
>>
>>
>> On Wed, Sep 18, 2013 at 10:21 PM, BibhasD <me at bibhas.in> <me at bibhas.in> wrote:
>>
>>
>>   Still not clear what you want to do. Do you want to serve the Django app
>> using tornado? Or do you want to use tornado as, say, a websocket server?
>>
>>
>> On Wednesday 18 September 2013 09:37 PM, Mrinmoy Das wrote:
>>
>> Bibhas,
>>
>> The whole site runs on django. To build a chat I need to use tornado. But I
>> literally have no idea on how to do it.
>> Here<http://stackoverflow.com/questions/2534603/how-use-django-with-tornado-web-server> <http://stackoverflow.com/questions/2534603/how-use-django-with-tornado-web-server> <http://stackoverflow.com/questions/2534603/how-use-django-with-tornado-web-server> <http://stackoverflow.com/questions/2534603/how-use-django-with-tornado-web-server>the
>> comment by Moayyad Yaghi explains how to run the whole project on
>> tornado, I just want One app to use this.
>>
>> Mrinmoy Dashttp://www.goromlagche.in/
>>
>>
>>
>> On Wed, Sep 18, 2013 at 9:19 PM, Bibhas <me at bibhas.in> <me at bibhas.in> <me at bibhas.in> <me at bibhas.in>
>>  wrote:
>>
>>
>>  Where are you stuck? Explain the use case.
>>
>> Mrinmoy Das <mrinmoy.das91 at gmail.com> <mrinmoy.das91 at gmail.com> <mrinmoy.das91 at gmail.com> <mrinmoy.das91 at gmail.com> wrote:
>>
>>
>> Hey guys,
>> So, I was working on django project, but a part of which is need to be
>> build using tornado, so I was wondering how to integrate that? Any ideas?
>>
>> I did a through search for resources, but after two days of head
>> scratching I am stuck at nowhere.
>>
>> Mrinmoy Dashttp://www.goromlagche.in/
>>
>>
>>
>> ------------------------------
>>
>> KolPy mailing listKolPy at python.orghttps://mail.python.org/mailman/listinfo/kolpy
>>
>>
>>  --
>> Thanks
>> Bibhashttp://bibhas.in
>>
>>
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>
>> _______________________________________________
>> KolPy mailing listKolPy at python.orghttps://mail.python.org/mailman/listinfo/kolpy
>>
>>
>>
>> ______________________________
>> _________________
>> KolPy mailing listKolPy at python.orghttps://mail.python.org/mailman/listinfo/kolpy
>>
>>
>>
>>
>> _______________________________________________
>> KolPy mailing listKolPy at python.orghttps://mail.python.org/mailman/listinfo/kolpy
>>
>>
>>
>> _______________________________________________
>> KolPy mailing listKolPy at python.orghttps://mail.python.org/mailman/listinfo/kolpy
>>
>>
>>
>> _______________________________________________
>> KolPy mailing list
>> KolPy at python.org
>> https://mail.python.org/mailman/listinfo/kolpy
>>
>>
>
>
> _______________________________________________
> KolPy mailing list
> KolPy at python.org
> https://mail.python.org/mailman/listinfo/kolpy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/kolpy/attachments/20130918/2e04a27b/attachment.html>


More information about the KolPy mailing list