From 28814ed58239582034b404b025ba828e9f59b517 Mon Sep 17 00:00:00 2001 From: Marion Chardon Date: Mon, 19 Mar 2018 15:53:11 +0100 Subject: [PATCH 1/4] modif conf staging --- adim_project/adim_project/settings/base.py | 4 +++- adim_project/adim_project/settings/staging.py | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/adim_project/adim_project/settings/base.py b/adim_project/adim_project/settings/base.py index 06fcf3f..f70b263 100644 --- a/adim_project/adim_project/settings/base.py +++ b/adim_project/adim_project/settings/base.py @@ -327,12 +327,14 @@ AAI = { # # CAUTION: when adding a ttp service, update the template (templates/adim/aom-modal.inc.html) with MODE_ID where needed # +MOODLE_HREF="http://moodle2.unil.ch/mod/adim/checkAccess.php?uuid={uuid}" + ATTP = { 'OPTIONS': { 'CACHE_TIMEOUT': 20, # 30, }, 'moodle': { - 'CHECK_URL': "http://moodle2.unil.ch/mod/adim/checkAccess.php?uuid={uuid}", + 'CHECK_URL': MOODLE_HREF, 'MODE_ID': 16 }, 'toto': { diff --git a/adim_project/adim_project/settings/staging.py b/adim_project/adim_project/settings/staging.py index 7a883d0..281cf7b 100644 --- a/adim_project/adim_project/settings/staging.py +++ b/adim_project/adim_project/settings/staging.py @@ -18,12 +18,14 @@ DATABASES = { 'NAME': 'adim_dev2', 'USER': 'adim', 'PASSWORD': 'ioue634jrs8asdfd0hewq876iujkh9877iuzhiuhg9875kb', - 'HOST': 'localhost', + 'HOST': 'leia.unil.ch', }, } +MOODLE_HREF = "https://tstmoodle.unil.ch/33/mod/adim/checkAccess.php?uuid={uuid}" + ADIM_PROD = False ADIM_DEBUG_JS = False # Only the ip listed here can access the admin interface -INTERNAL_IPS = ('130.223.159.72', ) +INTERNAL_IPS = ('130.223.159.72', ) \ No newline at end of file -- GitLab From d5f0d036dd69f476cafd2d9fe8dad99aff106352 Mon Sep 17 00:00:00 2001 From: Marion Chardon Date: Mon, 19 Mar 2018 18:59:08 +0100 Subject: [PATCH 2/4] visu env de test --- adim_project/templates/base.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adim_project/templates/base.html b/adim_project/templates/base.html index d591ced..3052620 100644 --- a/adim_project/templates/base.html +++ b/adim_project/templates/base.html @@ -21,6 +21,9 @@