Commit | Line | Data |
---|---|---|
155a7c62 CR |
1 | |
2 | import os | |
d15017b2 | 3 | from conf import * |
155a7c62 CR |
4 | |
5 | ADMINS = ( | |
6 | # ('Your Name', 'your_email@domain.com'), | |
7 | ) | |
8 | ||
9 | MANAGERS = ADMINS | |
10 | ||
155a7c62 CR |
11 | TIME_ZONE = 'America/Chicago' |
12 | ||
d15017b2 | 13 | LANGUAGE_CODE = 'fr-ca' |
155a7c62 CR |
14 | |
15 | # Absolute path to the directory that holds media. | |
16 | # Example: "/home/media/media.lawrence.com/" | |
17 | MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media') | |
18 | ||
19 | # URL that handles the media served from MEDIA_ROOT. Make sure to use a | |
20 | # trailing slash if there is a path component (optional in other cases). | |
21 | # Examples: "http://media.lawrence.com", "http://example.com/media/" | |
22 | MEDIA_URL = '/media/' | |
23 | ||
24 | # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a | |
25 | # trailing slash. | |
26 | # Examples: "http://foo.com/media/", "/media/". | |
27 | ADMIN_MEDIA_PREFIX = '/admin_media/' | |
28 | ||
29 | # Don't share this with anybody. | |
30 | SECRET_KEY = 'k5m_cyht&ipi!nbxng9-5zc!4_q84opflhsn#d3%^3=9gm44tt' | |
31 | ||
32 | MIDDLEWARE_CLASSES = ( | |
33 | 'django.middleware.common.CommonMiddleware', | |
34 | 'django.contrib.sessions.middleware.SessionMiddleware', | |
35 | 'django.contrib.auth.middleware.AuthenticationMiddleware', | |
36 | 'django.middleware.doc.XViewMiddleware', | |
37 | ) | |
38 | ||
d15017b2 | 39 | ROOT_URLCONF = 'auf_savoirs_en_partage_django.urls' |
155a7c62 CR |
40 | |
41 | ||
42 | INSTALLED_APPS = ( | |
43 | 'django.contrib.auth', | |
44 | 'django.contrib.contenttypes', | |
45 | 'django.contrib.sessions', | |
46 | 'django.contrib.admin', | |
6ef8ead4 CR |
47 | 'django_roa', |
48 | 'auf_roa_authentification_backend', | |
d15017b2 | 49 | 'savoirs', |
155a7c62 CR |
50 | ) |
51 | ||
52 | TEMPLATE_LOADERS = ( | |
53 | 'django.template.loaders.filesystem.load_template_source', | |
54 | 'django.template.loaders.app_directories.load_template_source', | |
55 | ) | |
56 | ||
57 | TEMPLATE_DIRS = ( | |
58 | os.path.join(os.path.dirname(__file__), "templates"), | |
59 | ) | |
60 | ||
6ef8ead4 CR |
61 | AUTHENTICATION_BACKENDS = ( |
62 | 'auf_roa_authentification_backend.backends.CascadeBackend', | |
63 | ) | |
64 | AUTH_PASSWORD_REQUIRED=True | |
65 | ROA_MODELS = True # set to False if you'd like to develop/test locally | |
66 | ROA_FORMAT = 'django' | |
67 | ROA_HEADERS = { | |
68 | 'Content-Type': 'application/x-www-form-urlencoded', | |
69 | } | |
70 | ROA_DJANGO_ERRORS = True # useful to ease debugging if you use test server | |
71 | ||
72 | ROA_BASE_URL = 'https://authentification.auf.org/auth/' | |
73 | SERIALIZATION_MODULES = { | |
74 | 'django' : 'auf_roa_authentification_backend.serializers', | |
75 | } |