Dear Nicholas,
Great job, thank you!
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?
I found setup.py needed to somewhere on your PYTHONPATH rather than the
project directory, perhaps this could be explained?
If you use the old wsgi.py you posted there seems to 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.?
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?
Also, for those with a virtual Python install, if you add something
similar to this at the top of startup.py then mod_python will use the
libraries setup by easy_install in your virtual Python lib directory.
Might be handy for some people!
import site
site.addsitedir('/path/to/home/lib/python2.4/site-packages/')
Thanks again for your tutorial, really great stuff!
James
Nicholas Piël wrote:
> Hi,
>
> I wrote a small tutorial that explains how to connect your Pylons app
> to Mod_Python. You can find the tutorial here: http://pylonshq.com/
> project/pylonshq/wiki/ModPython
>
> I made a small adjustment to the ModPythonGateway found over here:
> http://projects.amor.org/misc/wiki/ModPythonGateway The resulting
> 'gateway' allows you to easily connect any paste app to mod_python.
>
> 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
-~----------~----~----~----~------~----~------~--~---