Commit 126be74d authored by Mathieu Courcelles's avatar Mathieu Courcelles

Added code and doc for virtualenv with Apache.

parent 930989d5
......@@ -2,6 +2,9 @@ import os
import sys
from django.core.wsgi import get_wsgi_application
# Add the site-packages of the chosen virtualenv to work with
# site.addsitedir(r'C:\Users\username\Envs\CLMSVault_venv\Lib\site-packages')
sys.path.append('/home/django/py/CLMSVault')
os.environ['DJANGO_SETTINGS_MODULE'] = 'CLMSVault.settings.production'
......
......@@ -93,6 +93,8 @@ export SECRET_KEY='***************************************'
-Edit CLMSVault_app/settings/production.py config file with your database host, user and password.
-Also edit ADMINS, TIME_ZONE, EMAIL_* variables
-Edit apache/django.wsgi (sys.path)
-Execute the following commands to export and import fixture into database
cd /home/user/CLMSVault
export DJANGO_SETTINGS_MODULE='CLMSVault.settings.local'
......
......@@ -101,6 +101,9 @@ Follow the standalone installation instruction with the following modifications:
-Edit CLMSVault_app\settings\production.py config file with your database host, user and password.
-Also edit ADMINS, TIME_ZONE, EMAIL_* variables
-Edit apache/django.wsgi (sys.path, site.addsitedir)
-Execute the following commands to export and import fixture into database
cd C:\CLMSVault
SET DJANGO_SETTINGS_MODULE=CLMSVault.settings.local
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment