Like this:

--
import os
from cgi import parse_qs, escape

def hello_world(environ, start_response):
    vars = []
    for name, value in os.environ.items():
        vars.append('%s=%s' % (name, value))

    start_response('200 OK', [('Content-Type', 'text/html')])
    return ['<br/>'.join(vars)]

application = hello_world
--

It outputs:

--
LANG=C
TERM=xterm
SHLVL=2
PWD=/
PATH=/sbin:/usr/sbin:/bin:/usr/bin
LC_ALL=en_US.UTF-8
HOME=/home/username
_=/usr/sbin/httpd
--

That LANG=C is what I think is killing me. Like I said, I had this
working with mod_python, and then switching to mod_wsgi, it all fell
apart again.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to