config agenda PROD
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / settings.py
CommitLineData
155a7c62
CR
1
2import os
d15017b2 3from conf import *
155a7c62
CR
4
5ADMINS = (
6 # ('Your Name', 'your_email@domain.com'),
7)
8
9MANAGERS = ADMINS
10
155a7c62
CR
11TIME_ZONE = 'America/Chicago'
12
d15017b2 13LANGUAGE_CODE = 'fr-ca'
155a7c62
CR
14
15# Absolute path to the directory that holds media.
16# Example: "/home/media/media.lawrence.com/"
17MEDIA_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/"
22MEDIA_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/".
27ADMIN_MEDIA_PREFIX = '/admin_media/'
28
7a355faa
AJ
29# List of callables that know how to import templates from various sources.
30TEMPLATE_LOADERS = (
31 'django.template.loaders.filesystem.load_template_source',
32 'django.template.loaders.app_directories.load_template_source',
33# 'django.template.loaders.eggs.load_template_source',
34)
35
36TEMPLATE_CONTEXT_PROCESSORS = (
37 'django.core.context_processors.auth',
38 'django.core.context_processors.debug',
39 'django.core.context_processors.i18n',
40 'django.core.context_processors.media',
41 'django.core.context_processors.request',
42)
43
44
155a7c62 45MIDDLEWARE_CLASSES = (
42eb863b 46 'django.middleware.cache.UpdateCacheMiddleware',
155a7c62 47 'django.middleware.common.CommonMiddleware',
42eb863b 48 'django.middleware.cache.FetchFromCacheMiddleware',
155a7c62
CR
49 'django.contrib.sessions.middleware.SessionMiddleware',
50 'django.contrib.auth.middleware.AuthenticationMiddleware',
7a355faa
AJ
51 'pagination.middleware.PaginationMiddleware',
52 'django_sorting.middleware.SortingMiddleware',
155a7c62
CR
53 'django.middleware.doc.XViewMiddleware',
54)
55
0cc5f772 56ROOT_URLCONF = 'auf_savoirs_en_partage.urls'
155a7c62
CR
57
58
59INSTALLED_APPS = (
60 'django.contrib.auth',
61 'django.contrib.contenttypes',
62 'django.contrib.sessions',
63 'django.contrib.admin',
7a355faa
AJ
64 'pagination',
65 'django_sorting',
6ef8ead4 66 'django_roa',
92c7413b 67 'timezones',
d15017b2 68 'savoirs',
932eef9a 69 'chercheurs',
01a9197e 70 'sites',
155a7c62
CR
71)
72
73TEMPLATE_LOADERS = (
74 'django.template.loaders.filesystem.load_template_source',
75 'django.template.loaders.app_directories.load_template_source',
76)
77
78TEMPLATE_DIRS = (
79 os.path.join(os.path.dirname(__file__), "templates"),
80)
81
6ef8ead4 82AUTHENTICATION_BACKENDS = (
79c398f6 83 'auf_references_client.backends.CascadeBackend',
6ef8ead4 84)
79c398f6 85AUTH_PASSWORD_REQUIRED = True
5fa0c5a4 86
42eb863b
CR
87CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
88
79c398f6
CR
89ROA_CUSTOM_ARGS = {'api-key': ROA_API_KEY}
90from auf_references_client.settings import *