| changeset 29 | cc9b7e14412b |
| parent 0 | 0d40e90630ef |
| 28:b758351d191f | 29:cc9b7e14412b |
|---|---|
40 |
40 |
41 # Languages we provide translations for, out of the box. The language name |
41 # Languages we provide translations for, out of the box. The language name |
42 # should be the utf-8 encoded local name for the language. |
42 # should be the utf-8 encoded local name for the language. |
43 LANGUAGES = ( |
43 LANGUAGES = ( |
44 ('ar', gettext_noop('Arabic')), |
44 ('ar', gettext_noop('Arabic')), |
45 ('bg', gettext_noop('Bulgarian')), |
|
45 ('bn', gettext_noop('Bengali')), |
46 ('bn', gettext_noop('Bengali')), |
46 ('bg', gettext_noop('Bulgarian')), |
47 ('bs', gettext_noop('Bosnian')), |
47 ('ca', gettext_noop('Catalan')), |
48 ('ca', gettext_noop('Catalan')), |
48 ('cs', gettext_noop('Czech')), |
49 ('cs', gettext_noop('Czech')), |
49 ('cy', gettext_noop('Welsh')), |
50 ('cy', gettext_noop('Welsh')), |
50 ('da', gettext_noop('Danish')), |
51 ('da', gettext_noop('Danish')), |
51 ('de', gettext_noop('German')), |
52 ('de', gettext_noop('German')), |
52 ('el', gettext_noop('Greek')), |
53 ('el', gettext_noop('Greek')), |
53 ('en', gettext_noop('English')), |
54 ('en', gettext_noop('English')), |
55 ('en-gb', gettext_noop('British English')), |
|
54 ('es', gettext_noop('Spanish')), |
56 ('es', gettext_noop('Spanish')), |
57 ('es-ar', gettext_noop('Argentinean Spanish')), |
|
55 ('et', gettext_noop('Estonian')), |
58 ('et', gettext_noop('Estonian')), |
56 ('es-ar', gettext_noop('Argentinean Spanish')), |
|
57 ('eu', gettext_noop('Basque')), |
59 ('eu', gettext_noop('Basque')), |
58 ('fa', gettext_noop('Persian')), |
60 ('fa', gettext_noop('Persian')), |
59 ('fi', gettext_noop('Finnish')), |
61 ('fi', gettext_noop('Finnish')), |
60 ('fr', gettext_noop('French')), |
62 ('fr', gettext_noop('French')), |
63 ('fy-nl', gettext_noop('Frisian')), |
|
61 ('ga', gettext_noop('Irish')), |
64 ('ga', gettext_noop('Irish')), |
62 ('gl', gettext_noop('Galician')), |
65 ('gl', gettext_noop('Galician')), |
63 ('hu', gettext_noop('Hungarian')), |
|
64 ('he', gettext_noop('Hebrew')), |
66 ('he', gettext_noop('Hebrew')), |
65 ('hi', gettext_noop('Hindi')), |
67 ('hi', gettext_noop('Hindi')), |
66 ('hr', gettext_noop('Croatian')), |
68 ('hr', gettext_noop('Croatian')), |
69 ('hu', gettext_noop('Hungarian')), |
|
67 ('is', gettext_noop('Icelandic')), |
70 ('is', gettext_noop('Icelandic')), |
68 ('it', gettext_noop('Italian')), |
71 ('it', gettext_noop('Italian')), |
69 ('ja', gettext_noop('Japanese')), |
72 ('ja', gettext_noop('Japanese')), |
70 ('ka', gettext_noop('Georgian')), |
73 ('ka', gettext_noop('Georgian')), |
71 ('ko', gettext_noop('Korean')), |
|
72 ('km', gettext_noop('Khmer')), |
74 ('km', gettext_noop('Khmer')), |
73 ('kn', gettext_noop('Kannada')), |
75 ('kn', gettext_noop('Kannada')), |
76 ('ko', gettext_noop('Korean')), |
|
77 ('lt', gettext_noop('Lithuanian')), |
|
74 ('lv', gettext_noop('Latvian')), |
78 ('lv', gettext_noop('Latvian')), |
75 ('lt', gettext_noop('Lithuanian')), |
|
76 ('mk', gettext_noop('Macedonian')), |
79 ('mk', gettext_noop('Macedonian')), |
80 ('mn', gettext_noop('Mongolian')), |
|
77 ('nl', gettext_noop('Dutch')), |
81 ('nl', gettext_noop('Dutch')), |
78 ('no', gettext_noop('Norwegian')), |
82 ('no', gettext_noop('Norwegian')), |
83 ('nb', gettext_noop('Norwegian Bokmal')), |
|
84 ('nn', gettext_noop('Norwegian Nynorsk')), |
|
79 ('pl', gettext_noop('Polish')), |
85 ('pl', gettext_noop('Polish')), |
80 ('pt', gettext_noop('Portuguese')), |
86 ('pt', gettext_noop('Portuguese')), |
81 ('pt-br', gettext_noop('Brazilian Portuguese')), |
87 ('pt-br', gettext_noop('Brazilian Portuguese')), |
82 ('ro', gettext_noop('Romanian')), |
88 ('ro', gettext_noop('Romanian')), |
83 ('ru', gettext_noop('Russian')), |
89 ('ru', gettext_noop('Russian')), |
84 ('sk', gettext_noop('Slovak')), |
90 ('sk', gettext_noop('Slovak')), |
85 ('sl', gettext_noop('Slovenian')), |
91 ('sl', gettext_noop('Slovenian')), |
92 ('sq', gettext_noop('Albanian')), |
|
86 ('sr', gettext_noop('Serbian')), |
93 ('sr', gettext_noop('Serbian')), |
94 ('sr-latn', gettext_noop('Serbian Latin')), |
|
87 ('sv', gettext_noop('Swedish')), |
95 ('sv', gettext_noop('Swedish')), |
88 ('ta', gettext_noop('Tamil')), |
96 ('ta', gettext_noop('Tamil')), |
89 ('te', gettext_noop('Telugu')), |
97 ('te', gettext_noop('Telugu')), |
90 ('th', gettext_noop('Thai')), |
98 ('th', gettext_noop('Thai')), |
91 ('tr', gettext_noop('Turkish')), |
99 ('tr', gettext_noop('Turkish')), |
92 ('uk', gettext_noop('Ukrainian')), |
100 ('uk', gettext_noop('Ukrainian')), |
101 ('vi', gettext_noop('Vietnamese')), |
|
93 ('zh-cn', gettext_noop('Simplified Chinese')), |
102 ('zh-cn', gettext_noop('Simplified Chinese')), |
94 ('zh-tw', gettext_noop('Traditional Chinese')), |
103 ('zh-tw', gettext_noop('Traditional Chinese')), |
95 ) |
104 ) |
96 |
105 |
97 # Languages using BiDi (right-to-left) layout |
106 # Languages using BiDi (right-to-left) layout |
101 # to load the internationalization machinery. |
110 # to load the internationalization machinery. |
102 USE_I18N = True |
111 USE_I18N = True |
103 LOCALE_PATHS = () |
112 LOCALE_PATHS = () |
104 LANGUAGE_COOKIE_NAME = 'django_language' |
113 LANGUAGE_COOKIE_NAME = 'django_language' |
105 |
114 |
115 # If you set this to True, Django will format dates, numbers and calendars |
|
116 # according to user current locale |
|
117 USE_L10N = False |
|
118 |
|
106 # Not-necessarily-technical managers of the site. They get broken link |
119 # Not-necessarily-technical managers of the site. They get broken link |
107 # notifications and other various e-mails. |
120 # notifications and other various e-mails. |
108 MANAGERS = ADMINS |
121 MANAGERS = ADMINS |
109 |
122 |
110 # Default content type and charset to use for all HttpResponse objects, if a |
123 # Default content type and charset to use for all HttpResponse objects, if a |
121 |
134 |
122 # Whether to send broken-link e-mails. |
135 # Whether to send broken-link e-mails. |
123 SEND_BROKEN_LINK_EMAILS = False |
136 SEND_BROKEN_LINK_EMAILS = False |
124 |
137 |
125 # Database connection info. |
138 # Database connection info. |
139 # Legacy format |
|
126 DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
140 DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
127 DATABASE_NAME = '' # Or path to database file if using sqlite3. |
141 DATABASE_NAME = '' # Or path to database file if using sqlite3. |
128 DATABASE_USER = '' # Not used with sqlite3. |
142 DATABASE_USER = '' # Not used with sqlite3. |
129 DATABASE_PASSWORD = '' # Not used with sqlite3. |
143 DATABASE_PASSWORD = '' # Not used with sqlite3. |
130 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. |
144 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. |
131 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. |
145 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. |
132 DATABASE_OPTIONS = {} # Set to empty dictionary for default. |
146 DATABASE_OPTIONS = {} # Set to empty dictionary for default. |
133 |
147 |
148 # New format |
|
149 DATABASES = { |
|
150 } |
|
151 |
|
152 # Classes used to implement db routing behaviour |
|
153 DATABASE_ROUTERS = [] |
|
154 |
|
155 # The email backend to use. For possible shortcuts see django.core.mail. |
|
156 # The default is to use the SMTP backend. |
|
157 # Third-party backends can be specified by providing a Python path |
|
158 # to a module that defines an EmailBackend class. |
|
159 EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' |
|
160 |
|
134 # Host for sending e-mail. |
161 # Host for sending e-mail. |
135 EMAIL_HOST = 'localhost' |
162 EMAIL_HOST = 'localhost' |
136 |
163 |
137 # Port for sending e-mail. |
164 # Port for sending e-mail. |
138 EMAIL_PORT = 25 |
165 EMAIL_PORT = 25 |
150 |
177 |
151 # List of callables that know how to import templates from various sources. |
178 # List of callables that know how to import templates from various sources. |
152 # See the comments in django/core/template/loader.py for interface |
179 # See the comments in django/core/template/loader.py for interface |
153 # documentation. |
180 # documentation. |
154 TEMPLATE_LOADERS = ( |
181 TEMPLATE_LOADERS = ( |
155 'django.template.loaders.filesystem.load_template_source', |
182 'django.template.loaders.filesystem.Loader', |
156 'django.template.loaders.app_directories.load_template_source', |
183 'django.template.loaders.app_directories.Loader', |
157 # 'django.template.loaders.eggs.load_template_source', |
184 # 'django.template.loaders.eggs.Loader', |
158 ) |
185 ) |
159 |
186 |
160 # List of processors used by RequestContext to populate the context. |
187 # List of processors used by RequestContext to populate the context. |
161 # Each one should be a callable that takes the request object as its |
188 # Each one should be a callable that takes the request object as its |
162 # only parameter and returns a dictionary to add to the context. |
189 # only parameter and returns a dictionary to add to the context. |
163 TEMPLATE_CONTEXT_PROCESSORS = ( |
190 TEMPLATE_CONTEXT_PROCESSORS = ( |
164 'django.core.context_processors.auth', |
191 'django.contrib.auth.context_processors.auth', |
165 'django.core.context_processors.debug', |
192 'django.core.context_processors.debug', |
166 'django.core.context_processors.i18n', |
193 'django.core.context_processors.i18n', |
167 'django.core.context_processors.media', |
194 'django.core.context_processors.media', |
168 # 'django.core.context_processors.request', |
195 # 'django.core.context_processors.request', |
196 'django.contrib.messages.context_processors.messages', |
|
169 ) |
197 ) |
170 |
198 |
171 # Output to use in template system for invalid (e.g. misspelled) variables. |
199 # Output to use in template system for invalid (e.g. misspelled) variables. |
172 TEMPLATE_STRING_IF_INVALID = '' |
200 TEMPLATE_STRING_IF_INVALID = '' |
173 |
201 |
253 |
281 |
254 # The numeric mode to set newly-uploaded files to. The value should be a mode |
282 # The numeric mode to set newly-uploaded files to. The value should be a mode |
255 # you'd pass directly to os.chmod; see http://docs.python.org/lib/os-file-dir.html. |
283 # you'd pass directly to os.chmod; see http://docs.python.org/lib/os-file-dir.html. |
256 FILE_UPLOAD_PERMISSIONS = None |
284 FILE_UPLOAD_PERMISSIONS = None |
257 |
285 |
286 # Python module path where user will place custom format definition. |
|
287 # The directory where this setting is pointing should contain subdirectories |
|
288 # named as the locales, containing a formats.py file |
|
289 # (i.e. "myproject.locale" for myproject/locale/en/formats.py etc. use) |
|
290 FORMAT_MODULE_PATH = None |
|
291 |
|
258 # Default formatting for date objects. See all available format strings here: |
292 # Default formatting for date objects. See all available format strings here: |
259 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#now |
293 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#now |
260 DATE_FORMAT = 'N j, Y' |
294 DATE_FORMAT = 'N j, Y' |
261 |
295 |
262 # Default formatting for datetime objects. See all available format strings here: |
296 # Default formatting for datetime objects. See all available format strings here: |
274 |
308 |
275 # Default formatting for date objects when only the month and day are relevant. |
309 # Default formatting for date objects when only the month and day are relevant. |
276 # See all available format strings here: |
310 # See all available format strings here: |
277 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#now |
311 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#now |
278 MONTH_DAY_FORMAT = 'F j' |
312 MONTH_DAY_FORMAT = 'F j' |
313 |
|
314 # Default short formatting for date objects. See all available format strings here: |
|
315 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#now |
|
316 SHORT_DATE_FORMAT = 'm/d/Y' |
|
317 |
|
318 # Default short formatting for datetime objects. |
|
319 # See all available format strings here: |
|
320 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#now |
|
321 SHORT_DATETIME_FORMAT = 'm/d/Y P' |
|
322 |
|
323 # Default formats to be used when parsing dates from input boxes, in order |
|
324 # See all available format string here: |
|
325 # http://docs.python.org/library/datetime.html#strftime-behavior |
|
326 # * Note that these format strings are different from the ones to display dates |
|
327 DATE_INPUT_FORMATS = ( |
|
328 '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06' |
|
329 '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006' |
|
330 '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006' |
|
331 '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006' |
|
332 '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006' |
|
333 ) |
|
334 |
|
335 # Default formats to be used when parsing times from input boxes, in order |
|
336 # See all available format string here: |
|
337 # http://docs.python.org/library/datetime.html#strftime-behavior |
|
338 # * Note that these format strings are different from the ones to display dates |
|
339 TIME_INPUT_FORMATS = ( |
|
340 '%H:%M:%S', # '14:30:59' |
|
341 '%H:%M', # '14:30' |
|
342 ) |
|
343 |
|
344 # Default formats to be used when parsing dates and times from input boxes, |
|
345 # in order |
|
346 # See all available format string here: |
|
347 # http://docs.python.org/library/datetime.html#strftime-behavior |
|
348 # * Note that these format strings are different from the ones to display dates |
|
349 DATETIME_INPUT_FORMATS = ( |
|
350 '%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59' |
|
351 '%Y-%m-%d %H:%M', # '2006-10-25 14:30' |
|
352 '%Y-%m-%d', # '2006-10-25' |
|
353 '%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59' |
|
354 '%m/%d/%Y %H:%M', # '10/25/2006 14:30' |
|
355 '%m/%d/%Y', # '10/25/2006' |
|
356 '%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59' |
|
357 '%m/%d/%y %H:%M', # '10/25/06 14:30' |
|
358 '%m/%d/%y', # '10/25/06' |
|
359 ) |
|
360 |
|
361 # First day of week, to be used on calendars |
|
362 # 0 means Sunday, 1 means Monday... |
|
363 FIRST_DAY_OF_WEEK = 0 |
|
364 |
|
365 # Decimal separator symbol |
|
366 DECIMAL_SEPARATOR = '.' |
|
367 |
|
368 # Boolean that sets whether to add thousand separator when formatting numbers |
|
369 USE_THOUSAND_SEPARATOR = False |
|
370 |
|
371 # Number of digits that will be togheter, when spliting them by THOUSAND_SEPARATOR |
|
372 # 0 means no grouping, 3 means splitting by thousands... |
|
373 NUMBER_GROUPING = 0 |
|
374 |
|
375 # Thousand separator symbol |
|
376 THOUSAND_SEPARATOR = ',' |
|
279 |
377 |
280 # Do you want to manage transactions manually? |
378 # Do you want to manage transactions manually? |
281 # Hint: you really don't! |
379 # Hint: you really don't! |
282 TRANSACTIONS_MANAGED = False |
380 TRANSACTIONS_MANAGED = False |
283 |
381 |
298 # this middleware classes will be applied in the order given, and in the |
396 # this middleware classes will be applied in the order given, and in the |
299 # response phase the middleware will be applied in reverse order. |
397 # response phase the middleware will be applied in reverse order. |
300 MIDDLEWARE_CLASSES = ( |
398 MIDDLEWARE_CLASSES = ( |
301 'django.middleware.common.CommonMiddleware', |
399 'django.middleware.common.CommonMiddleware', |
302 'django.contrib.sessions.middleware.SessionMiddleware', |
400 'django.contrib.sessions.middleware.SessionMiddleware', |
401 'django.middleware.csrf.CsrfViewMiddleware', |
|
303 'django.contrib.auth.middleware.AuthenticationMiddleware', |
402 'django.contrib.auth.middleware.AuthenticationMiddleware', |
403 'django.contrib.messages.middleware.MessageMiddleware', |
|
304 # 'django.middleware.http.ConditionalGetMiddleware', |
404 # 'django.middleware.http.ConditionalGetMiddleware', |
305 # 'django.middleware.gzip.GZipMiddleware', |
405 # 'django.middleware.gzip.GZipMiddleware', |
306 ) |
406 ) |
307 |
407 |
308 ############ |
408 ############ |
372 LOGIN_REDIRECT_URL = '/accounts/profile/' |
472 LOGIN_REDIRECT_URL = '/accounts/profile/' |
373 |
473 |
374 # The number of days a password reset link is valid for |
474 # The number of days a password reset link is valid for |
375 PASSWORD_RESET_TIMEOUT_DAYS = 3 |
475 PASSWORD_RESET_TIMEOUT_DAYS = 3 |
376 |
476 |
477 ######## |
|
478 # CSRF # |
|
479 ######## |
|
480 |
|
481 # Dotted path to callable to be used as view when a request is |
|
482 # rejected by the CSRF middleware. |
|
483 CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure' |
|
484 |
|
485 # Name and domain for CSRF cookie. |
|
486 CSRF_COOKIE_NAME = 'csrftoken' |
|
487 CSRF_COOKIE_DOMAIN = None |
|
488 |
|
489 ############ |
|
490 # MESSAGES # |
|
491 ############ |
|
492 |
|
493 # Class to use as messges backend |
|
494 MESSAGE_STORAGE = 'django.contrib.messages.storage.user_messages.LegacyFallbackStorage' |
|
495 |
|
496 # Default values of MESSAGE_LEVEL and MESSAGE_TAGS are defined within |
|
497 # django.contrib.messages to avoid imports in this settings file. |
|
498 |
|
377 ########### |
499 ########### |
378 # TESTING # |
500 # TESTING # |
379 ########### |
501 ########### |
380 |
502 |
381 # The name of the method to use to invoke the test suite |
503 # The name of the class to use to run the test suite |
382 TEST_RUNNER = 'django.test.simple.run_tests' |
504 TEST_RUNNER = 'django.test.simple.DjangoTestSuiteRunner' |
383 |
505 |
384 # The name of the database to use for testing purposes. |
506 # The name of the database to use for testing purposes. |
385 # If None, a name of 'test_' + DATABASE_NAME will be assumed |
507 # If None, a name of 'test_' + DATABASE_NAME will be assumed |
386 TEST_DATABASE_NAME = None |
508 TEST_DATABASE_NAME = None |
387 |
509 |