X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e04a3d9448c218e380a0c281f2e6330df3166ead..849b853b9daf946df00558e72dd90ab3822b2b1b:/wolnelektury.wsgi.template 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