#2407: [patch] CGI Support for django
-------------------------------------------------------+--------------------
Reporter: Martin Glueck <[EMAIL PROTECTED]> | Owner:
adrian
Status: new | Component:
Core framework
Version: SVN | Resolution:
Keywords: cgi | Stage:
Design decision needed
Has_patch: 1 | Needs_docs:
0
Needs_tests: 1 | Needs_better_patch:
1
-------------------------------------------------------+--------------------
Comment (by anonymous):
FWIW, when using django.cgi, I had to specify the PATH_INFO like this:
{{{
environ['PATH_INFO'] = environ.get('REDIRECT_URL',"/")
}}}
instead of :
{{{
def run_with_cgi(application):
environ = dict(os.environ.items())
+ environ['PATH_INFO'] = environ.get('PATH_INFO',"/")
environ['wsgi.input'] = sys.stdin
environ['wsgi.errors'] = sys.stderr
environ['wsgi.version'] = (1,0)
}}}
so that I got the correct path passed to django. Perhaps there is a
different way to do this, but it worked for me.
--
Ticket URL: <http://code.djangoproject.com/ticket/2407#comment:14>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---