644e3fb22153e43feaa5979fec3c6c7ce70029b5
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / settings.py
1
2 import os
3 from conf import *
4
5 ADMINS = (
6 # ('Your Name', 'your_email@domain.com'),
7 )
8
9 MANAGERS = ADMINS
10
11 TIME_ZONE = 'America/Chicago'
12
13 LANGUAGE_CODE = 'fr-ca'
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.cache.UpdateCacheMiddleware',
34 'django.middleware.common.CommonMiddleware',
35 'django.middleware.cache.FetchFromCacheMiddleware',
36 'django.contrib.sessions.middleware.SessionMiddleware',
37 'django.contrib.auth.middleware.AuthenticationMiddleware',
38 'django.middleware.doc.XViewMiddleware',
39 )
40
41 ROOT_URLCONF = 'auf_savoirs_en_partage.urls'
42
43
44 INSTALLED_APPS = (
45 'django.contrib.auth',
46 'django.contrib.contenttypes',
47 'django.contrib.sessions',
48 'django.contrib.admin',
49 'django_roa',
50 'timezones',
51 'savoirs',
52 )
53
54 TEMPLATE_LOADERS = (
55 'django.template.loaders.filesystem.load_template_source',
56 'django.template.loaders.app_directories.load_template_source',
57 )
58
59 TEMPLATE_DIRS = (
60 os.path.join(os.path.dirname(__file__), "templates"),
61 )
62
63 AUTHENTICATION_BACKENDS = (
64 'auf_references_client.backends.CascadeBackend',
65 )
66 AUTH_PASSWORD_REQUIRED = True
67
68 CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
69
70 ROA_CUSTOM_ARGS = {'api-key': ROA_API_KEY}
71 from auf_references_client.settings import *