[wsgi] Python interpreter initialization
Manlio Perillo
manlio_perillo at libero.it
Mon Aug 20 14:58:20 MSD 2007
Igor Sysoev ha scritto:
>
> Anyway I do not know how to write small inlines in python with its indentions:
>
> server {
>
> location / {
>
> python '
> def handler(r)
> ...
> ...
> ...
> ...
> ';
>
> }
> }
>
In Python the indentation is "relative", so your code should be right.
However I do not plan to support inline Python code, but only things like
(see http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives):
server {
location / {
wsgi_alias /path/to/your/module;
wsgi_callable_object application;
}
}
That is: only "full" WSGI applications.
Again, I want to keep the code as simple as possible.
Regards Manlio Perillo
More information about the nginx
mailing list