Gitlab CSE Unil

base.py 1.44 KB
Newer Older
Julien Furrer's avatar
Julien Furrer committed
1
2
3
4
5
6
7
8

DEBUG = False

TEMPLATE_DEBUG = False

ALLOWED_HOSTS = []

INSTALLED_APPS = (
Julien Furrer's avatar
Julien Furrer committed
9
    'django.contrib.sites',
Julien Furrer's avatar
Julien Furrer committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    'django_extensions',

    'rest_framework',
    'shibauth',
    'adim',
    'adim_app',
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

TEMPLATE_CONTEXT_PROCESSORS = (
    'django.contrib.auth.context_processors.auth',
    'django.core.context_processors.debug',
    'django.core.context_processors.i18n',
    'django.core.context_processors.media',
    'django.core.context_processors.static',
    'django.core.context_processors.request',
    'django.core.context_processors.tz',
    'django.contrib.messages.context_processors.messages',
    'adim_project.context_processors.default',
)

ROOT_URLCONF = 'adim_project.urls'

WSGI_APPLICATION = 'adim_project.wsgi.application'

# Internationalization
# https://docs.djangoproject.com/en/1.6/topics/i18n/


Julien Furrer's avatar
Julien Furrer committed
54
LANGUAGE_CODE = 'fr-ch'
Julien Furrer's avatar
Julien Furrer committed
55
56
57
58
59
60
61
62
63

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True