10 Feb 12:00
Thread local storage issue under Apache
Alessandro Candini <candini <at> meeo.it>
2012-02-10 11:00:42 GMT
2012-02-10 11:00:42 GMT
Hi everyone.
I have a django project in where I've added a custom .py file which
launches a shell command (a GDAL utility to manipulate shapefiles):
subprocess.call(["ogr2ogr", "-t_srs", "EPSG:900913", shpGoogle, shpOrig])
If I run the function containing this command using django web server
everything works fine and my new file have produced and stored on the
filesystem.
But if I run the same application under the Apache web server, I get the
following error:
Fatal Python error: Couldn't create autoTLSkey mapping
Do you have any idea on how to solve this?
Thanks in advance
Configuration details follows...
I'm using Apache/2.2.20 on Ubuntu-11.10 mod_wsgi-3.3 Python-2.7.2
django-1.3.1
My django.wsgi file is the following
import os, sys
sys.path.append('/home/candini/Repos/CanetaRepo/tmp/STO')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
(Continue reading)
RSS Feed