| author | raph |
| Wed, 24 Mar 2010 16:14:19 +0100 | |
| changeset 228 | 3a0f8b54a151 |
| parent 204 | f97a2370743c |
| child 436 | 83b032cbf471 |
| permissions | -rw-r--r-- |
| 132 | 1 |
DEBUG = False |
| 0 | 2 |
CLIENT_DEBUG = DEBUG |
3 |
TEMPLATE_DEBUG = DEBUG |
|
4 |
||
5 |
ADMINS = ( |
|
6 |
# ('Your Name', 'your_email@domain.com'), |
|
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 = ( |
|
60 |
'django.template.loaders.filesystem.load_template_source', |
|
61 |
'django.template.loaders.app_directories.load_template_source', |
|
62 |
# 'django.template.loaders.eggs.load_template_source', |
|
63 |
) |
|
64 |
||
65 |
TEMPLATE_CONTEXT_PROCESSORS = ( |
|
66 |
'cm.context_processors.static', |
|
67 |
'cm.context_processors.tz', |
|
68 |
'cm.context_processors.utils', |
|
69 |
'django.core.context_processors.auth', |
|
70 |
'django.core.context_processors.request', |
|
71 |
"django.core.context_processors.i18n", |
|
72 |
"django.core.context_processors.media", |
|
73 |
'djangoflash.context_processors.flash', |
|
74 |
) |
|
75 |
||
76 |
MIDDLEWARE_CLASSES = ( |
|
77 |
'django.middleware.common.CommonMiddleware', |
|
78 |
'django.contrib.sessions.middleware.SessionMiddleware', |
|
79 |
'django.middleware.locale.LocaleMiddleware', |
|
80 |
'djangoflash.middleware.FlashMiddleware', |
|
81 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
82 |
'cm.middleware.CmMiddleware', |
|
83 |
) |
|
84 |
||
85 |
ROOT_URLCONF = 'urls' |
|
86 |
||
87 |
TEMPLATE_DIRS = ( |
|
88 |
) |
|
89 |
||
90 |
INSTALLED_APPS = ( |
|
91 |
'django.contrib.auth', |
|
92 |
'django.contrib.contenttypes', |
|
93 |
'django.contrib.sessions', |
|
94 |
'django.contrib.sites', |
|
95 |
'django.contrib.admin', |
|
96 |
'cm', |
|
97 |
'tagging', |
|
| 29 | 98 |
'django_extensions', # http://code.google.com/p/django-command-extensions/ |
99 |
'south', |
|
| 0 | 100 |
) |
101 |
||
102 |
_ = lambda s: s |
|
103 |
||
104 |
LANGUAGES = ( |
|
105 |
('fr', _(u'French')), |
|
106 |
('en', _(u'English')), |
|
| 84 | 107 |
('no', _('Norwegian')), |
|
124
4576a8264929
add pt_BR translation (thx Paulo RenĂ¡ da Silva SantarĂ©m & co)
raph
parents:
114
diff
changeset
|
108 |
('pt_BR', _('Brazilian Portuguese')), |
|
137
32f0cf5e62ce
added spanish translation (thx Alejandro Martin Ortin)
raph
parents:
132
diff
changeset
|
109 |
('es', _('Spanish')), |
| 204 | 110 |
('bg', _('Bulgarian')), |
| 0 | 111 |
) |
112 |
||
113 |
AUTH_PROFILE_MODULE = 'cm.UserProfile' |
|
114 |
||
115 |
# always upload file to disk to pipe them through converters |
|
116 |
FILE_UPLOAD_HANDLERS = ("django.core.files.uploadhandler.TemporaryFileUploadHandler",) |
|
117 |
||
118 |
# comt settings |
|
119 |
||
120 |
# YUI version : set to js/lib/ version directory to be used |
|
121 |
YUI_VERSION = 'yui3.0.0' |
|
122 |
||
123 |
||
124 |
# base timezone used for client |
|
125 |
DEFAULT_TIME_ZONE = TIME_ZONE |
|
126 |
||
127 |
CACHE_BACKEND = 'locmem:///?timeout=3600&max_entries=400' |
|
128 |
||
129 |
try: |
|
130 |
from settings_local import * |
|
131 |
except ImportError: |
|
132 |
pass |