X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e04a3d9448c218e380a0c281f2e6330df3166ead..842aeda3f5811649639b281c30c52b87306bae67:/wolnelektury.wsgi.template?ds=sidebyside 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