Hello :)
> I'd suggest you to use either WSGI or pyscgi. Google it, there is plenty > tutorial and introduction articles. > > Once you have a test application, you'll have to configure a new > Information Source pointing to your application, and then set a rule to use > SCGI and that information source. > > Here you can find how a big application is configured with SCGI: > > http://www.cherokee-project.com/doc/cookbook_trac.html > <http://www.alobbs.com/> I've tried with django and it runs perfectly... but, I prefer not being tied to Django. I've wrote this code in python and I did "the same" that I did with django to enable it on cherokee... but cherokee keeps the browser waiting for content a lot of time and finally shows a 503 error. If I try the app without cherokee, it runs perfectly on the port i've specified. App code: #!/usr/bin/python def handle_request(environment, start_response): start_response('200 OK', [('content-type', 'text/html')]) return ['Hello, World!'] if __name__ == '__main__': from wsgiref import simple_server simple_server.make_server('', 8080, handle_request).serve_forever() Now in Spanish... sorry if my english text is very bad.. Lo vuelvo a escribir en castellano por si no me expresé bien en inglés (que es altamente probable), Instalé django y todo va de maravilla, pero prefiero no estar ligado solo a esa solución, por eso prové de hacer una aplicación sencillísima con python y WSGI (la de arriba), el caso es que cuando intento acceder a la página tal y como la tengo configurada en Cherokee localhost/example2 en mi caso, el navegador se queda esperando a una respuesta.. pero no recibe ninguna, hasta que recibe un error 503 pasado mucho rato. En cambio, si intento acceder directamente a la aplicación sin utilizar cherokee (arrancándola manualmente), ésta sí que funciona correctamente. Por otro lado he hecho un comando ps y Cherokee arranca correctamente la aplicación (que en este caso la llamé serv.py) (aunque alguna vez no la ha arrancado, la mayoría de veces sí lo hizo, y seguramente cuando no la arrancó es que había hecho algun apaño raro yo para provar si con eso lo arreglaba) La configuración que hice es prácticamente idéntica a la de django (con otros puertos, otro nombre, y otro directorio asignado y indicando otro comando para su ejecución, en este caso era /var/www/serv.py) La verdad es que no sé si la aplicación que hice está mal diseñada para funcionar de esta manera o si configuro mal Cherokee. Por cierto, la respuesta mejor en inglés por si sirve a alguien, que leer se me da más bien que escribir jeje. Thanks in advance. -- - Per la llibertat del coneixement - - Per la llibertat de la ment... -
_______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
