Problems with wsgi Python3

Diez B. Roggisch deets at web.de
Thu Sep 30 11:55:06 EDT 2010


hidura at gmail.com writes:

> Hello list, i had seriously troubles with the connection between a form and the
> wsgi, i' ve made an application on Python3 and was running perfectly but when i
> try to use the <form> to pass the data this can't be see on the server, so what
> is your recommendation?, i am open to all the ideas less leave to Python2 i
> can't all the project was write on Python3, i was looking into the PEP 444
> proposal too.
>
> Here is the code what i used to take the data:
>
> <code>print(urllib.parse.parse_qs(environ['wsgi.input'].read(int(environ
> ['CONTENT_LENGTH'])).decode()))</code>

What is the ouptut of this? What does

import pprint 
pprint.pprint(environ)

give you?


>
> and here it's what the os.environ.item() prints to me:

That's irrelevant. The WSGI-environ is what is needed.

Diez



More information about the Python-list mailing list