On Jul 10, 2006, at 1:33 AM, James Gardner wrote:


> I've followed the instructions and noticed a few things I think might
> need correcting:
>
> Should the handler be ``PythonHandler mod_python.wsgi`` rather than
> ``PythonHandler modpython_gateway`` since that is what your  
> instructions
> recommend saving it as?

Yup "PythonHandler mod_python.wsgi" is correct! Halfway through the  
writing of the tutorial i changed my mind not to hack up the wsgi  
gateway. I therefor changed parts of it and this caused all the small  
bugs. Sorry for that.

>
> I found setup.py needed to somewhere on your PYTHONPATH rather than  
> the
> project directory, perhaps this could be explained?

Well, i did not notice any path problems but if you do you can add  
the following mod_python directive to your .htaccess:

PythonPath "['/home/httpd/vhosts/nichol.as/httpdocs/imagesearch'] +  
sys.path"


> If you use the old wsgi.py you posted there seems to PythonPath "['/ 
> home/httpd/vhosts/nichol.as/httpdocs/imagesearch'] + sys.path"be an  
> extra         `if``
> on line 193 of wsgi.py. Should we now use modpython_gateway  
> instead? In
> which case probably best to remove the instructions to rename it to
> wsgi.py which might be causing problem 1.?

Yeah, i would recommend to take just this approach. I changed the  
wiki to reflect this.

> What should you write if you want the application mounted at the URL
> root rather than /imagesearch, I find that adding / as the SCRIPT_NAME
> leads to infinite recursions. Any thoughts? How can you set a blank
> SCRIPT_NAME?

Well, i *needed* the SCRIPT_NAME since Apache wasn't able to find it  
out on it's own and caused a recursion. If you do not want a  
SCRIPT_NAME you can just remove that line from your .htaccess

Btw James, how did your Pylons talk on EuroPython go? I noticed that  
Pylons wasn't mentioned in the webframeworkshootout. Thats a pity :/

Cheers,
Nicholas


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to