fnp
/
edumed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47336ec
)
librarian in wsgi
author
Jan Szejko
<jan.szejko@gmail.com>
Wed, 29 Jun 2016 15:35:29 +0000
(17:35 +0200)
committer
Jan Szejko
<jan.szejko@gmail.com>
Wed, 29 Jun 2016 15:35:29 +0000
(17:35 +0200)
edumed/wsgi.py
patch
|
blob
|
history
diff --git
a/edumed/wsgi.py
b/edumed/wsgi.py
index
9fb1efd
..
840d8e5
100644
(file)
--- 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")