From: Marek Stępniowski Date: Sun, 11 Oct 2009 12:06:47 +0000 (+0200) Subject: Poprawienie ścieżek w wolnelektury.fcgi i wolnelektury.wsgi. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/1a5d9a134e88915b5db447924f532fd63aaeb45e Poprawienie ścieżek w wolnelektury.fcgi i wolnelektury.wsgi. --- diff --git a/wolnelektury/wolnelektury.fcgi b/wolnelektury/wolnelektury.fcgi index 1f9c621c1..51157583e 100644 --- a/wolnelektury/wolnelektury.fcgi +++ b/wolnelektury/wolnelektury.fcgi @@ -8,12 +8,12 @@ import sys sys.stdout = sys.stderr # Add apps and lib directories to PYTHONPATH -sys.path.insert(0, abspath(join(dirname(__file__), '../../apps'))) -sys.path.insert(0, abspath(join(dirname(__file__), '../../lib'))) +sys.path.insert(0, abspath(join(dirname(__file__), '../apps'))) +sys.path.insert(0, abspath(join(dirname(__file__), '../lib'))) # Emulate manage.py path hacking. -sys.path.insert(0, abspath(join(dirname(__file__), "../../"))) sys.path.insert(0, abspath(join(dirname(__file__), "../"))) +sys.path.insert(0, abspath(join(dirname(__file__), "."))) # Run Django os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' diff --git a/wolnelektury/wolnelektury.wsgi b/wolnelektury/wolnelektury.wsgi index 590d36bcd..acafede9c 100644 --- a/wolnelektury/wolnelektury.wsgi +++ b/wolnelektury/wolnelektury.wsgi @@ -8,12 +8,12 @@ import sys sys.stdout = sys.stderr # Add apps and lib directories to PYTHONPATH -sys.path.insert(0, abspath(join(dirname(__file__), '../../apps'))) -sys.path.insert(0, abspath(join(dirname(__file__), '../../lib'))) +sys.path.insert(0, abspath(join(dirname(__file__), '../apps'))) +sys.path.insert(0, abspath(join(dirname(__file__), '../lib'))) # Emulate manage.py path hacking. -sys.path.insert(0, abspath(join(dirname(__file__), "../../"))) sys.path.insert(0, abspath(join(dirname(__file__), "../"))) +sys.path.insert(0, abspath(join(dirname(__file__), "."))) # Run Django os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'