[Grok-dev] Re: WSGI, Repoze and deployment questions
Graham Dumpleton
Graham.Dumpleton at gmail.com
Wed Nov 21 16:54:16 EST 2007
>> Would Grok work with mod_wsgi?
>
> It already does, under Repoze. See
>
> -http://grok.repoze.org/animals
>
> -http://grok.repoze.org/bookshelf
>
> -http://grok.repoze.org/todolist
>
> The relevant Apache config is::
>
> WSGIDaemonProcess grok threads=1 processes=4 maximum-requests=10000 \
> user=tseaver \
> python-path=/home/repoze/www/grok.repoze.org/lib/python2.4/site-packages
Just note that the 'python-path' option to WSGIDaemonProcess only
exists for mod_wsgi 2.0, so use the 2.0 release candidate rather than
1.3. The 'python-path' option is a bit more intelligent than just
setting PYTHONPATH as it it will open up '.pth' files and process
them. Ie., it actually calls site.addsitedir(). In 2.0 the
WSGIPythonPath directive does the same thing for when running
application in embedded mode. In 1.3, WSGIPythonPath behaved just like
PYTHONPATH and thus wouldn't do what you probably want. In other
words, better to use 2.0.
Graham
Graham
More information about the Grok-dev
mailing list