<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    "Talk to it from Django" is kind of misleading actually. <br>
    <br>
    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.<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <div class="moz-cite-prefix">On Wednesday 18 September 2013 11:09
      PM, Mrinmoy Das wrote:<br>
    </div>
    <blockquote
cite="mid:CAFWA-MM-MZ9S1t3JTmRfjxZud55NbjJ73nwLYjGRJL-JNFeLMQ@mail.gmail.com"
      type="cite">
      <pre wrap="">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
<a class="moz-txt-link-freetext" href="http://www.goromlagche.in/">http://www.goromlagche.in/</a>


On Wed, Sep 18, 2013 at 10:39 PM, BibhasD <a class="moz-txt-link-rfc2396E" href="mailto:me@bibhas.in"><me@bibhas.in></a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap=""> You can use this method(
<a class="moz-txt-link-freetext" href="http://ultimatenerdiness.com/2012/10/14/django-and-tornado/">http://ultimatenerdiness.com/2012/10/14/django-and-tornado/</a>) 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 <a class="moz-txt-link-rfc2396E" href="mailto:me@bibhas.in"><me@bibhas.in></a> <a class="moz-txt-link-rfc2396E" href="mailto:me@bibhas.in"><me@bibhas.in></a> 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<a class="moz-txt-link-rfc2396E" href="http://stackoverflow.com/questions/2534603/how-use-django-with-tornado-web-server"><http://stackoverflow.com/questions/2534603/how-use-django-with-tornado-web-server></a> <a class="moz-txt-link-rfc2396E" href="http://stackoverflow.com/questions/2534603/how-use-django-with-tornado-web-server"><http://stackoverflow.com/questions/2534603/how-use-django-with-tornado-web-server></a> <a class="moz-txt-link-rfc2396E" href="http://stackoverflow.com/questions/2534603/how-use-django-with-tornado-web-server"><http://stackoverflow.com/questions/2534603/how-use-django-with-tornado-web-server></a> <a class="moz-txt-link-rfc2396E" href="http://stackoverflow.com/questions/2534603/how-use-django-with-tornado-web-server"><http://stackoverflow.com/questions/2534603/how-use-django-with-tornado-web-server></a>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 <a class="moz-txt-link-rfc2396E" href="mailto:me@bibhas.in"><me@bibhas.in></a> <a class="moz-txt-link-rfc2396E" href="mailto:me@bibhas.in"><me@bibhas.in></a> <a class="moz-txt-link-rfc2396E" href="mailto:me@bibhas.in"><me@bibhas.in></a> <a class="moz-txt-link-rfc2396E" href="mailto:me@bibhas.in"><me@bibhas.in></a>
 wrote:


 Where are you stuck? Explain the use case.

Mrinmoy Das <a class="moz-txt-link-rfc2396E" href="mailto:mrinmoy.das91@gmail.com"><mrinmoy.das91@gmail.com></a> <a class="moz-txt-link-rfc2396E" href="mailto:mrinmoy.das91@gmail.com"><mrinmoy.das91@gmail.com></a> <a class="moz-txt-link-rfc2396E" href="mailto:mrinmoy.das91@gmail.com"><mrinmoy.das91@gmail.com></a> <a class="moz-txt-link-rfc2396E" href="mailto:mrinmoy.das91@gmail.com"><mrinmoy.das91@gmail.com></a> 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 <a class="moz-txt-link-abbreviated" href="mailto:listKolPy@python.orghttps://mail.python.org/mailman/listinfo/kolpy">listKolPy@python.orghttps://mail.python.org/mailman/listinfo/kolpy</a>


 --
Thanks
Bibhashttp://bibhas.in


Sent from my Android device with K-9 Mail. Please excuse my brevity.

_______________________________________________
KolPy mailing <a class="moz-txt-link-abbreviated" href="mailto:listKolPy@python.orghttps://mail.python.org/mailman/listinfo/kolpy">listKolPy@python.orghttps://mail.python.org/mailman/listinfo/kolpy</a>



______________________________
_________________
KolPy mailing <a class="moz-txt-link-abbreviated" href="mailto:listKolPy@python.orghttps://mail.python.org/mailman/listinfo/kolpy">listKolPy@python.orghttps://mail.python.org/mailman/listinfo/kolpy</a>




_______________________________________________
KolPy mailing <a class="moz-txt-link-abbreviated" href="mailto:listKolPy@python.orghttps://mail.python.org/mailman/listinfo/kolpy">listKolPy@python.orghttps://mail.python.org/mailman/listinfo/kolpy</a>



_______________________________________________
KolPy mailing <a class="moz-txt-link-abbreviated" href="mailto:listKolPy@python.orghttps://mail.python.org/mailman/listinfo/kolpy">listKolPy@python.orghttps://mail.python.org/mailman/listinfo/kolpy</a>



_______________________________________________
KolPy mailing list
<a class="moz-txt-link-abbreviated" href="mailto:KolPy@python.org">KolPy@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/kolpy">https://mail.python.org/mailman/listinfo/kolpy</a>


</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
KolPy mailing list
<a class="moz-txt-link-abbreviated" href="mailto:KolPy@python.org">KolPy@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/kolpy">https://mail.python.org/mailman/listinfo/kolpy</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>