On Jul 10, 2006, at 11:20 AM, [EMAIL PROTECTED] wrote:

>> 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
>
> If I remove it I get a recursion too. Do you know a way of mounting  
> the
> application at the root URL without getting the recursion? It might  
> be it
> is a bug and I just have to work through the code which I'm happy  
> to do
> unless you know of a solution?

Hmmm the following works for me:

SetHandler mod_python
PythonHandler mod_python.wsgi
PythonOption wsgi.application startup::app
PythonOption SCRIPT_NAME /imagesearch

I put this in a '.htaccess' in the same directory development.ini and  
setup.py is in. About script_name, if i do not add a  a leading slash  
i get an error, when i add a slash to the end Pylons gives me an  
error and when i omit it i get recursion.

Remember that when you do not have 'PythonDebug On' in your .htaccess  
you need to stop and start your webserver if you really want to see  
if your changes had any effect. This can be quite confusing.


>> Btw James, how did your Pylons talk on EuroPython go? I noticed that
>> Pylons wasn't mentioned in the webframeworkshootout. Thats a pity :/
>
> The talks went well thank you, although I think non-native English  
> speakers
> had a hard time understanding me so for future talks I'll prepare less
> content and speak more slowly! Pylons is definitely considered up  
> there
> with Zope, Django, and TurboGears and the other frameworks  
> recognise the
> advantage of WSGI and I think will make more efforts to support it in
> future so that's great. Yes, unfortunately I didn't present my 20  
> min wiki
> but there was a lot of interest so I've promised to do a screencast  
> and
> email it to the EuroPython list. I'll cc it here too.

cool!

--~--~---------~--~----~------------~-------~--~----~
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