X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/cb6e41c4de7445f44661c9826c7523bde81617e6..f230a3850ec568f2281f085a076a6185d8c82b5c:/wolnelektury.wsgi.template?ds=sidebyside diff --git a/wolnelektury.wsgi.template b/wolnelektury.wsgi.template index 3437e8f3c..6a56ad7b6 100644 --- a/wolnelektury.wsgi.template +++ b/wolnelektury.wsgi.template @@ -1,6 +1,6 @@ #!%(python)s import site -site.addsitedir('%(path)s/lib/python2.5/site-packages') +site.addsitedir('%(path)s/lib/python2.6/site-packages') import os from os.path import abspath, dirname, join @@ -10,9 +10,6 @@ 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', @@ -23,6 +20,7 @@ sys.path = [ ] + sys.path # Run Django +os.environ["CELERY_LOADER"] = "django" os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.core.handlers.wsgi import WSGIHandler