| author | Simon Descarpentries <sid@sopinspace.com> |
| Tue, 06 May 2014 13:52:01 +0200 | |
| changeset 651 | 9bbc657f6837 |
| parent 621 | f60680601d52 |
| permissions | -rw-r--r-- |
|
621
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
1 |
DEBUG = True |
| 0 | 2 |
CLIENT_DEBUG = DEBUG |
3 |
TEMPLATE_DEBUG = DEBUG |
|
4 |
||
5 |
ADMINS = ( |
|
|
621
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
6 |
# ('Your Name', 'your_email@domain.com'), |
| 0 | 7 |
) |
8 |
||
9 |
MANAGERS = ADMINS |
|
10 |
||
11 |
# Local time zone for this installation. Choices can be found here: |
|
12 |
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
|
13 |
# although not all choices may be available on all operating systems. |
|
14 |
# If running in a Windows environment this must be set to the same as your |
|
15 |
# system time zone. |
|
16 |
#TIME_ZONE = 'America/Chicago' |
|
17 |
TIME_ZONE = 'Europe/Paris' #UTC |
|
18 |
||
19 |
# it's not the format js client users will see the dates in ! |
|
20 |
# it's the format that's used to communicate dates to js client (python date -> JSON str -> parsed to js date) |
|
21 |
CLIENT_DATE_FMT = {'python_output' : '%Y-%m-%dT%H:%M:%S', 'js_parse' : "Y-m-d\\\\TH:i:s"} |
|
|
114
49647a504de8
ENH ticket 20 disable edit in versions tab added ALLOW_CLIENT_MODIF_ON_LAST_VERSION_ONLY to settings.py
rbernard
parents:
84
diff
changeset
|
22 |
ALLOW_CLIENT_MODIF_ON_LAST_VERSION_ONLY = True |
| 0 | 23 |
|
24 |
# Language code for this installation. All choices can be found here: |
|
25 |
# http://www.i18nguy.com/unicode/language-identifiers.html |
|
26 |
LANGUAGE_CODE = 'en-us' |
|
27 |
||
28 |
SITE_ID = 1 |
|
29 |
||
30 |
# If you set this to False, Django will make some optimizations so as not |
|
31 |
# to load the internationalization machinery. |
|
32 |
USE_I18N = True |
|
33 |
||
34 |
# Absolute path to the directory that holds media. |
|
35 |
# Example: "/home/media/media.lawrence.com/" |
|
36 |
MEDIA_ROOT = '' |
|
37 |
||
38 |
import os |
|
39 |
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), "src/cm/site_media/") |
|
40 |
||
41 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
42 |
# trailing slash if there is a path component (optional in other cases). |
|
43 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
|
44 |
MEDIA_URL = '/site_media/' |
|
45 |
||
46 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
|
47 |
# trailing slash. |
|
48 |
# Examples: "http://foo.com/media/", "/media/". |
|
49 |
ADMIN_MEDIA_PREFIX = '/media/' |
|
50 |
||
51 |
LOGIN_URL = '/login/' |
|
52 |
||
53 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
54 |
# trailing slash if there is a path component (optional in other cases). |
|
55 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
|
56 |
#MEDIA_URL = SITE_URL + '/themedia/' |
|
57 |
||
58 |
# List of callables that know how to import templates from various sources. |
|
59 |
TEMPLATE_LOADERS = ( |
|
|
621
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
60 |
'django.template.loaders.filesystem.Loader', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
61 |
'django.template.loaders.app_directories.Loader', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
62 |
# 'django.template.loaders.eggs.load_template_source', |
| 0 | 63 |
) |
64 |
||
65 |
TEMPLATE_CONTEXT_PROCESSORS = ( |
|
|
621
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
66 |
'cm.context_processors.static', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
67 |
'cm.context_processors.tz', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
68 |
'cm.context_processors.utils', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
69 |
'django.contrib.auth.context_processors.auth', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
70 |
'django.core.context_processors.request', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
71 |
"django.core.context_processors.i18n", |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
72 |
"django.core.context_processors.media", |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
73 |
'djangoflash.context_processors.flash', |
| 0 | 74 |
) |
75 |
||
76 |
MIDDLEWARE_CLASSES = ( |
|
|
621
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
77 |
'django.middleware.gzip.GZipMiddleware', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
78 |
'django.middleware.common.CommonMiddleware', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
79 |
'django.contrib.sessions.middleware.SessionMiddleware', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
80 |
'django.middleware.locale.LocaleMiddleware', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
81 |
'djangoflash.middleware.FlashMiddleware', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
82 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
83 |
'cm.middleware.CmMiddleware', |
| 0 | 84 |
) |
85 |
||
86 |
ROOT_URLCONF = 'urls' |
|
87 |
||
88 |
TEMPLATE_DIRS = ( |
|
89 |
) |
|
90 |
||
91 |
INSTALLED_APPS = ( |
|
|
621
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
92 |
'django.contrib.auth', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
93 |
'django.contrib.contenttypes', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
94 |
'django.contrib.sessions', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
95 |
'django.contrib.sites', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
96 |
'django.contrib.admin', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
97 |
'cm', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
98 |
'tagging', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
99 |
'django_extensions', # http://code.google.com/p/django-command-extensions/ |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
100 |
'south', |
| 0 | 101 |
) |
102 |
||
103 |
_ = lambda s: s |
|
104 |
||
105 |
LANGUAGES = ( |
|
|
621
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
106 |
('fr', _(u'French')), |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
107 |
('en', _(u'English')), |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
108 |
('es', _('Spanish')), |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
109 |
('it', _('Italian')), |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
110 |
('de', _('German')), |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
111 |
('pt_BR', _('Brazilian Portuguese')), |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
112 |
('nb', _('Norwegian')), |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
113 |
('bg', _('Bulgarian')), |
| 0 | 114 |
) |
115 |
||
|
621
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
116 |
LOGGING = { |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
117 |
'version': 1, |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
118 |
'disable_existing_loggers': True, |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
119 |
'formatters': { |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
120 |
'verbose': { |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
121 |
'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s' |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
122 |
}, |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
123 |
'simple': { |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
124 |
'format': '%(levelname)s %(message)s' |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
125 |
}, |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
126 |
}, |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
127 |
'filters': { |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
128 |
}, |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
129 |
'handlers': { |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
130 |
'console':{ |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
131 |
'level': 'DEBUG', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
132 |
'class': 'logging.StreamHandler', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
133 |
'formatter': 'verbose' |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
134 |
} |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
135 |
}, |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
136 |
'loggers': { |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
137 |
'django': { |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
138 |
'handlers': ['console'], |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
139 |
'propagate': True, |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
140 |
'level': 'WARNING', |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
141 |
} |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
142 |
} |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
143 |
} |
|
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
144 |
|
| 0 | 145 |
AUTH_PROFILE_MODULE = 'cm.UserProfile' |
146 |
||
147 |
# always upload file to disk to pipe them through converters |
|
148 |
FILE_UPLOAD_HANDLERS = ("django.core.files.uploadhandler.TemporaryFileUploadHandler",) |
|
149 |
||
150 |
# comt settings |
|
|
446
019889d4c614
Avoid warnings for deprecated instructions in djan 1.3
gibus
parents:
439
diff
changeset
|
151 |
PISTON_IGNORE_DUPE_MODELS = True |
| 0 | 152 |
|
153 |
# YUI version : set to js/lib/ version directory to be used |
|
| 602 | 154 |
YUI_VERSION = 'yui3-3.15.0' |
| 0 | 155 |
|
156 |
# base timezone used for client |
|
157 |
DEFAULT_TIME_ZONE = TIME_ZONE |
|
158 |
||
159 |
CACHE_BACKEND = 'locmem:///?timeout=3600&max_entries=400' |
|
160 |
||
161 |
try: |
|
|
621
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
162 |
from settings_local import * |
| 0 | 163 |
except ImportError: |
|
621
f60680601d52
Add german language, review and complete all languages, consequently updates the js-tests
Simon Descarpentries <sid@sopinspace.com>
parents:
602
diff
changeset
|
164 |
pass |