Привет!
Как используя Python c mod_wsgi отдать изображение клиенту в браузер?
def application(environ, start_response): status = '200 OK' output = 'Hello World!'
response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(output)))] start_response(status, response_headers)
return [output]
Как-то так вообщем. Если вы просто разбираетесь с wsgi, то это нормальный пример. Но так работать лучше не следует.