Skip to content
Snippets Groups Projects
Commit 2f44d78b authored by Jean-Philippe Laverdure's avatar Jean-Philippe Laverdure
Browse files

rewrite part of the README for locally run project + updates values in .env.example

parent 4c772b33
No related branches found
No related tags found
1 merge request!115rewrite part of the README for locally run project + updates values in .env.example
SECRET_KEY=^9&_!k-r&t^y9)+z9zh()rrt0qy6zpat=$8&+f0d_d0d35@iq-
SECRET_KEY=<visit https://djecrety.ir/ and paste value here>
DEBUG=True
ALLOWED_HOSTS=.iric.ca, localhost, 127.0.0.1
ADMINS=JPL/jean-philippe.laverdure@umontreal.ca,Jo/jonathan.seguin.1@umontreal.ca,Gen/genevieve.boucher@umontreal.ca
ADMINS=<username>/<email>
# Use SQLite engine for simplified DEV environment (laptop)
# DB_ENGINE=django.db.backends.sqlite3
DB_ENGINE=django.db.backends.postgresql
......@@ -10,15 +10,14 @@ DB_USER=iric_data_user
DB_PASSWORD=
DB_HOST=127.0.0.1
DB_PORT=5432
AUTH_LDAP_SERVER_URI=ldap://sim.umontreal.ca
AUTH_LDAP_BIND_DN=iric-bioinfo@sim.umontreal.ca
AUTH_LDAP_BIND_PASSWORD=647By2vC
AUTH_LDAP_SERVER_URI=<ldap-server>
AUTH_LDAP_BIND_DN=<ldap-user>
AUTH_LDAP_BIND_PASSWORD=<ldap-passwd>
AUTH_LDAP_BIND_AS_AUTHENTICATING_USER=True
AUTH_LDAP_USER_DN_TEMPLATE=cn=%(user)s,ou=People,dc=sim,dc=umontreal,dc=ca
AUTH_LDAP_SEARCH=ou=people,dc=sim,dc=umontreal,dc=ca
# Toggle the following to remove staff status from bioinfo members:
AUTH_LDAP_STAFF_GROUP=CN=iric-bioinformatique,OU=Groupes,OU=iric,OU=People,DC=sim,DC=umontreal,DC=ca
#AUTH_LDAP_STAFF_GROUP=CN=iric-invites,OU=Groupes,OU=iric,OU=People,DC=sim,DC=umontreal,DC=ca
AUTH_LDAP_STAFF_GROUP=iric-bioinformatique
COMPUTER_DOMAIN=SIM
......@@ -29,4 +28,3 @@ DATA_ROOT=
SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_KEY=
SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_SECRET=
SOCIAL_AUTH_AZUREAD_TENANT_OAUTH2_TENANT_ID=
......@@ -70,15 +70,17 @@ DROP OWNED BY iric_data_user;
# with active virtenv
## Initial deploy:
python manage.py migrate
python manage.py populate_iric
## If NOT initial deploy (safe to run if no migrations exist)
python manage.py migrate portal
python manage.py migrate auth
# Add initial (super) user
# Add initial (super) user (follow onscreen prompts)
python manage.py createsuperuser
## Apply all remaining migrations
python manage.py migrate
# Add IRIC defaault data
python manage.py populate_iric
# Run without SSL
python manage.py runserver
# Site is now accessible at:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment