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 | ||
7a355faa AJ |
32 | # List of callables that know how to import templates from various sources. |
33 | TEMPLATE_LOADERS = ( | |
34 | 'django.template.loaders.filesystem.load_template_source', | |
35 | 'django.template.loaders.app_directories.load_template_source', | |
36 | # 'django.template.loaders.eggs.load_template_source', | |
37 | ) | |
38 | ||
39 | TEMPLATE_CONTEXT_PROCESSORS = ( | |
40 | 'django.core.context_processors.auth', | |
41 | 'django.core.context_processors.debug', | |
42 | 'django.core.context_processors.i18n', | |
43 | 'django.core.context_processors.media', | |
44 | 'django.core.context_processors.request', | |
45 | ) | |
46 | ||
47 | ||
155a7c62 | 48 | MIDDLEWARE_CLASSES = ( |
42eb863b | 49 | 'django.middleware.cache.UpdateCacheMiddleware', |
155a7c62 | 50 | 'django.middleware.common.CommonMiddleware', |
42eb863b | 51 | 'django.middleware.cache.FetchFromCacheMiddleware', |
155a7c62 CR |
52 | 'django.contrib.sessions.middleware.SessionMiddleware', |
53 | 'django.contrib.auth.middleware.AuthenticationMiddleware', | |
7a355faa AJ |
54 | 'pagination.middleware.PaginationMiddleware', |
55 | 'django_sorting.middleware.SortingMiddleware', | |
155a7c62 CR |
56 | 'django.middleware.doc.XViewMiddleware', |
57 | ) | |
58 | ||
0cc5f772 | 59 | ROOT_URLCONF = 'auf_savoirs_en_partage.urls' |
155a7c62 CR |
60 | |
61 | ||
62 | INSTALLED_APPS = ( | |
63 | 'django.contrib.auth', | |
64 | 'django.contrib.contenttypes', | |
65 | 'django.contrib.sessions', | |
66 | 'django.contrib.admin', | |
7a355faa AJ |
67 | 'pagination', |
68 | 'django_sorting', | |
6ef8ead4 | 69 | 'django_roa', |
92c7413b | 70 | 'timezones', |
d15017b2 | 71 | 'savoirs', |
932eef9a | 72 | 'chercheurs', |
155a7c62 CR |
73 | ) |
74 | ||
75 | TEMPLATE_LOADERS = ( | |
76 | 'django.template.loaders.filesystem.load_template_source', | |
77 | 'django.template.loaders.app_directories.load_template_source', | |
78 | ) | |
79 | ||
80 | TEMPLATE_DIRS = ( | |
81 | os.path.join(os.path.dirname(__file__), "templates"), | |
82 | ) | |
83 | ||
6ef8ead4 | 84 | AUTHENTICATION_BACKENDS = ( |
79c398f6 | 85 | 'auf_references_client.backends.CascadeBackend', |
6ef8ead4 | 86 | ) |
79c398f6 | 87 | AUTH_PASSWORD_REQUIRED = True |
5fa0c5a4 | 88 | |
42eb863b CR |
89 | CACHE_BACKEND = 'memcached://127.0.0.1:11211/' |
90 | ||
79c398f6 CR |
91 | ROA_CUSTOM_ARGS = {'api-key': ROA_API_KEY} |
92 | from auf_references_client.settings import * |