X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/e76fdcf2a2488b1787c74fe8dccfa38d7ac04c84..9a59fc6a5c29dc6d1d79854a4d8ae83959c910bf:/edumed/wsgi.py?ds=sidebyside diff --git a/edumed/wsgi.py b/edumed/wsgi.py index 9fb1efd..840d8e5 100644 --- a/edumed/wsgi.py +++ b/edumed/wsgi.py @@ -14,6 +14,14 @@ framework. """ import os +import sys + +ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + +# Add apps and lib directories to PYTHONPATH +sys.path = [ + os.path.join(ROOT, 'lib/librarian'), +] + sys.path os.environ.setdefault("DJANGO_SETTINGS_MODULE", "edumed.settings")