Commits

Mathieu Agopian  committed c49e995

fix AD deployment

  • Participants
  • Parent commits a59390c

Comments (0)

Files changed (2)

 site/djangofr/djangofr.db
 site/djangofr/settings.py
 site/apps/
+venv/

File site/public/django.fcgi

 
 _HERE = path.abspath(__file__)
 
-_ROOT = path.dirname(path.dirname(_HERE))
-sys.path.insert(0, _ROOT)
+_ROOT = path.dirname(path.dirname(path.dirname(_HERE)))
+sys.path.insert(0, path.join(_ROOT, 'site'))
+sys.path.insert(0, path.join(_ROOT, 'site/djangofr'))
 
-# use virtualenv "venv" which is in the project's parent folder
+# use virtualenv "venv"
 activate_this = path.join(_ROOT, 'venv/bin/activate_this.py')
 execfile(activate_this, dict(__file__=activate_this))