Re: django auth for existing cgi

2010-12-07 Thread Brian Craft
Copying things from request.META to the env parameter of Popen allows me to get the cgi off the ground. Now I have the problem that the cgi is generating a cookie and content type, which django returns to the browser as page content. Is there a way to pass it back transparently? Or, failing that,

Re: django auth for existing cgi

2010-12-06 Thread Wayne Smith
On Mon, Dec 6, 2010 at 4:42 PM, bc wrote: > Is there any simple way to use django authentication/authorization to > control access to an existing (not django) cgi? > > I could use subprocess.Popen to invoke the cgi after checking > authorization, but the environment needs to be set up to look lik

django auth for existing cgi

2010-12-06 Thread bc
Is there any simple way to use django authentication/authorization to control access to an existing (not django) cgi? I could use subprocess.Popen to invoke the cgi after checking authorization, but the environment needs to be set up to look like a cgi call (setting QUERY_STRING, etc.). Is there a