Hi

I'm using mod_wsgi 2.3 in embedded mode with a Pylons app, and
observing that mod_wsgi executes my wsgi script twice on the first
request.

Here's my wsgi script:

---
import site
import os, sys

site.addsitedir('/home/elemoine/.virtualenvs/mf-perf-test/lib/python2.6/site-packages')

sys.path.append('/home/elemoine/public_html/mapfish/PerfTestProject')
os.environ['PYTHON_EGG_CACHE'] = '/tmp/python-eggs'

from paste.script.util.logging_config import fileConfig
fileConfig('/home/elemoine/public_html/mapfish/PerfTestProject/development.ini')

from paste.deploy import loadapp
print 'XXX loadapp XXXX'
application = 
loadapp('config:/home/elemoine/public_html/mapfish/PerfTestProject/development.ini')
---

The first produces this output in the Apache logs:

[Mon Mar 21 15:41:12 2011] [error] XXX loadapp XXXX
[Mon Mar 21 15:41:13 2011] [error] XXX loadapp XXXX


Is it expected? Are there specific conditions that make this happen?

Here's my Apache config:

---
WSGIScriptReloading Off
WSGIScriptAlias /perftestproject
/home/elemoine/public_html/mapfish/PerfTestProject/wsgi
---

(I also have WSGIRestrictStdout Off in the global Apache config, for
my print statement to work)


Thanks for any insight on this.



-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en.

Reply via email to