El mié, 12-08-2009 a las 18:00 +0200, Alvaro Lopez Ortega escribió:
> On 12-ago-09, at 15:56, Mario César Señoranis Ayala wrote:
> 
> > I want to setup a custom environment variable on cherokee, and get the
> > value on my running website.
> 
> If you want to pass a set of variables to an Information Source  
> (FastCGI or SCGI), you have to define them in "Information Sources" ->  
> <Pick the one you wanna custom> -> "Add new Environment variable".
> 
> In case you'd like to pass a environment variable to a CGI (a complete  
> different thing), you'd have to go "Virtual Servers" -> <Pick the  
> vserver> -> "Behavior" -> <Pick the CGI rule> -> "Handler" -> "Custom  
> environment variables".

Thanks, I just try to setup the Environment Variable in the Information
Sources.

name TEST value TEST

Inside my Django project, I try this:

import os
print(os.environ['TEST'])

I get no value, I get the that key TEST doesn't exists.

> --
> Octality
> http://www.octality.com/
> 

-- 
Mario César Señoranis Ayala

Twitter: http://twitter.com/mariocesar_bo
Arte: http://mariocesar.deviantart.com
Blog Software Libre: http://softwarelibre.org.bo/mariocesar
Noticias Compartidas: http://tinyurl.com/mariocesar-shared-news

Attachment: signature.asc
Description: Esto es una parte de mensaje firmado digitalmente

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to