Re: Running Django on Tornado's HTTP server

2009-09-29 Thread Kenneth Gonsalves
On Tuesday 29 Sep 2009 2:44:26 pm Ramdas S wrote: > > > cool - this worked out of the box - but no css and js - can I serve > > > media from tornado, and if so, a pointer as to how? > > > > solved - managed to run several django sites of an nginx instance using > > virtual hosts and individual

Re: Running Django on Tornado's HTTP server

2009-09-29 Thread Kenneth Gonsalves
On Tuesday 29 Sep 2009 8:07:55 pm Javier Guerra wrote: > On Tue, Sep 29, 2009 at 4:24 AM, Kenneth Gonsalves > > wrote: > > will document after trying it in production - a zillion times faster > > faster than. ? flup? faster than apache/mod_wsgi -- regards kg

Re: Running Django on Tornado's HTTP server

2009-09-29 Thread Javier Guerra
On Tue, Sep 29, 2009 at 4:24 AM, Kenneth Gonsalves wrote: > will document after trying it in production - a zillion times faster faster than. ? flup? -- Javier --~--~-~--~~~---~--~~ You received this message because you are

Re: Running Django on Tornado's HTTP server

2009-09-29 Thread Kenneth Gonsalves
On Tuesday 29 Sep 2009 2:44:26 pm Ramdas S wrote: > can I serve media > > > > from tornado, and if so, a pointer as to how? > > > > solved - managed to run several django sites of an nginx instance using > > virtual hosts and individual tornado servers for each virtual host. > > Coolness > >

Re: Running Django on Tornado's HTTP server

2009-09-29 Thread Ramdas S
On Tue, Sep 29, 2009 at 2:32 PM, Kenneth Gonsalves wrote: > > On Saturday 19 Sep 2009 5:13:39 pm Kenneth Gonsalves wrote: > > On Monday 14 Sep 2009 1:56:32 am Bret Taylor wrote: > > > he module: > > > > > > import django.core.handlers.wsgi > > > import os > > >

Re: Running Django on Tornado's HTTP server

2009-09-29 Thread Kenneth Gonsalves
On Saturday 19 Sep 2009 5:13:39 pm Kenneth Gonsalves wrote: > On Monday 14 Sep 2009 1:56:32 am Bret Taylor wrote: > > he module: > > > > import django.core.handlers.wsgi > > import os > > import tornado.httpserver > > import tornado.ioloop > > import tornado.wsgi > > > >

Re: Running Django on Tornado's HTTP server

2009-09-19 Thread Antoni Aloy
2009/9/19 Kenneth Gonsalves : > > On Monday 14 Sep 2009 1:56:32 am Bret Taylor wrote: >> he module: >> >>     import django.core.handlers.wsgi >>     import os >>     import tornado.httpserver >>     import tornado.ioloop >>     import tornado.wsgi >> >>     def main(): >>

Re: Running Django on Tornado's HTTP server

2009-09-19 Thread Kenneth Gonsalves
On Monday 14 Sep 2009 1:56:32 am Bret Taylor wrote: > he module: > > import django.core.handlers.wsgi > import os > import tornado.httpserver > import tornado.ioloop > import tornado.wsgi > > def main(): > os.environ["DJANGO_SETTINGS_MODULE"] = 'myapp.settings' >

Re: Running Django on Tornado's HTTP server

2009-09-15 Thread Brian
Thanks ... this link pointed me in the right direction. Should I be able to serve up admin media using just Django and Tornado? If so, I haven't found the right combination of paths / urls etc. in settings.py to get that working. The Tornado doc describes how to "serve static files from Tornado

Re: Running Django on Tornado's HTTP server

2009-09-15 Thread fruits
media files for admin is handled by the django dev server. So when you change the server, you have to serve admin media file yourself. http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#id3 On Sep 15, 9:42 am, Brian wrote: > I have a small Django app under

Re: Running Django on Tornado's HTTP server

2009-09-14 Thread Brian
I have a small Django app under development and was able to get this running using the github update. My app runs and is very responsive with Tornado. Some of my admin site layout is out of whack, but it may be my settings or my bug. Formatting and CSS I created on my own looks good (e.g.

Re: Running Django on Tornado's HTTP server

2009-09-14 Thread Ismail Dhorat
Interesting, i would like to see how tornado stacks up to Lighttpd? Regards, Ismail On Mon, Sep 14, 2009 at 7:29 PM, Antoni Aloy wrote: > > 2009/9/13 Antoni Aloy : >> 2009/9/13 Bret Taylor : >>> >>> I am one of the authors of

Re: Running Django on Tornado's HTTP server

2009-09-14 Thread Antoni Aloy
2009/9/13 Antoni Aloy : > 2009/9/13 Bret Taylor : >> >> I am one of the authors of Tornado (http://www.tornadoweb.org/), the >> web server/framework we built at FriendFeed that we open sourced last >> week (see

Re: Running Django on Tornado's HTTP server

2009-09-13 Thread Antoni Aloy
2009/9/13 Bret Taylor : > > I am one of the authors of Tornado (http://www.tornadoweb.org/), the > web server/framework we built at FriendFeed that we open sourced last > week (see http://bret.appspot.com/entry/tornado-web-server). > > The underlying non-blocking HTTP server is

Running Django on Tornado's HTTP server

2009-09-13 Thread Bret Taylor
I am one of the authors of Tornado (http://www.tornadoweb.org/), the web server/framework we built at FriendFeed that we open sourced last week (see http://bret.appspot.com/entry/tornado-web-server). The underlying non-blocking HTTP server is fairly high performance, so I have been working this