What are the contents of your .wsgi script?

#!/usr/bin/python

import os
import sys
import site
sys.path.append('/var/www/pylons/cp')
site.addsitedir('/var/www/pylons/lib/python2.5/site-packages')
os.environ['PYTHON_EGG_CACHE'] = '/var/www/pylons/eggcache'

from paste.deploy import loadapp

application = loadapp('config:/var/www/pylons/cp/development.ini')



And make sure that /var/www/pylons/eggcache is writeable by your
webserver.

There are probably some issues with the particular script and perhaps
Graham Dumpleton will drop by and correct it, but, this is the bare
minimum wsgi script that worked for me.

wsgi doesn't use portions of the development.ini that don't apply to
it and you don't need to run your project as an egg.  Development
under apache2/mod_wsgi is a little tricky.

http://code.google.com/p/modwsgi/wiki/IntegrationWithPylons

There is a page somewhere that details what it takes to allow you to
leave debug=true in your development.ini when running under embedded
mode, but, I don't have it bookmarked and can't find it on the wiki.

-- 
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?hl=en.

Reply via email to