Gitlab CSE Unil

staging.py 780 Bytes
Newer Older
Julien Furrer's avatar
Julien Furrer committed
1
2
3
4
5
6
"""
Settings for staging server
"""
from .base import *

DEBUG = True
M. Chardon's avatar
M. Chardon committed
7
#TEMPLATE_DEBUG = TEMPLATES[0]['OPTIONS']['debug'] = True
Julien Furrer's avatar
Julien Furrer committed
8

9
update_urls('/adim-dev/', __name__)
Julien Furrer's avatar
Julien Furrer committed
10
11
12

ALLOWED_HOSTS = ['.unil.ch']

Julien Furrer's avatar
Julien Furrer committed
13
14
WSGI_APPLICATION = '%s.wsgi.staging.application' % SITE_NAME

Julien Furrer's avatar
Julien Furrer committed
15
16
17
18
19
20
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'adim_dev2',
        'USER': 'adim',
        'PASSWORD': 'ioue634jrs8asdfd0hewq876iujkh9877iuzhiuhg9875kb',
M. Chardon's avatar
M. Chardon committed
21
        'HOST': 'leia.unil.ch',
Julien Furrer's avatar
Julien Furrer committed
22
23
24
    },
}

M. Chardon's avatar
M. Chardon committed
25
26
27
28
29
30
ATTP = {
    'moodle': {
        'CHECK_URL': "https://tstmoodle.unil.ch/33/mod/adim/checkAccess.php?uuid={uuid}",
        'MODE_ID': 16
    }
}
M. Chardon's avatar
M. Chardon committed
31

Julien Furrer's avatar
Julien Furrer committed
32
ADIM_PROD = False
Julien Furrer's avatar
Julien Furrer committed
33
ADIM_DEBUG_JS = False
34
35

# Only the ip listed here can access the admin interface
M. Chardon's avatar
M. Chardon committed
36
INTERNAL_IPS = ('130.223.159.72', )