fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PIL requirement fix
[wolnelektury.git]
/
wolnelektury.wsgi.template
diff --git
a/wolnelektury.wsgi.template
b/wolnelektury.wsgi.template
index
5535819
..
3437e8f
100644
(file)
--- a/
wolnelektury.wsgi.template
+++ b/
wolnelektury.wsgi.template
@@
-10,6
+10,9
@@
import sys
# print statements for optional import exceptions.
sys.stdout = sys.stderr
# print statements for optional import exceptions.
sys.stdout = sys.stderr
+# we don't want these packages to cover our virtualenv
+sys.path = [p for p in sys.path if not p.startswith('/usr/lib/python2.5/site-packages') and not p.startswith('/var/lib/python-support/python2.5')]
+
# Add apps and lib directories to PYTHONPATH
sys.path = [
'%(path)s/releases/current/%(project_name)s',
# Add apps and lib directories to PYTHONPATH
sys.path = [
'%(path)s/releases/current/%(project_name)s',