X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e04a3d9448c218e380a0c281f2e6330df3166ead..217b9062ee1d240a4244eed06c9b2b86015db1b3:/wolnelektury.wsgi.template?ds=inline diff --git a/wolnelektury.wsgi.template b/wolnelektury.wsgi.template index 76e390320..3437e8f3c 100644 --- a/wolnelektury.wsgi.template +++ b/wolnelektury.wsgi.template @@ -10,12 +10,16 @@ import sys # 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', '%(path)s/releases/current', '%(path)s/releases/current/apps', '%(path)s/releases/current/lib', + '%(path)s/releases/current/lib/librarian', ] + sys.path # Run Django