now whit django 1.4 is beary easy to run tornado server.

import os
import tornado.httpserver
import tornado.ioloop
import tornado.wsgi
import sys
import django.core.handlers.wsgi
#sys.path.append('/home/lawgon/') # path to your project ( if you have it 
in another dir).

def main():
    os.environ['DJANGO_SETTINGS_MODULE'] = 'revista.settings' # path to 
your settings module
    application = django.core.handlers.wsgi.WSGIHandler()
    container = tornado.wsgi.WSGIContainer(application)
    http_server = tornado.httpserver.HTTPServer(container)
    http_server.listen(8888)
    tornado.ioloop.IOLoop.instance().start()
if __name__ == "__main__":
    main()

so... i whis try tornado in VPS production becouse is more simple to 
configure ;)  


the only probles is i need ever up, and i dont know who to check if tornado 
runs whit crontab  and restart if dont run..

Sujestions? 

this vps is for thest little proyects whit 100 visits/day so i dont have a 
problem for tornado performance

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to