| author | gibus |
| Mon, 10 Mar 2014 15:19:48 +0100 | |
| changeset 602 | e16a97fb364a |
| parent 600 | fda73ac53450 |
| child 621 | f60680601d52 |
| permissions | -rw-r--r-- |
| 132 | 1 |
DEBUG = False |
| 0 | 2 |
CLIENT_DEBUG = DEBUG |
3 |
TEMPLATE_DEBUG = DEBUG |
|
4 |
||
|
561
6da1a12084a9
Add a DISABLE_TRACKING variable in settings as suggested here : http://www.co-ment.org/ticket/86
Simon Descarpentries <sid@sopinspace.com>
parents:
532
diff
changeset
|
5 |
# Set to True if you don't want to appear in Sopinspace Piwik statistics |
|
6da1a12084a9
Add a DISABLE_TRACKING variable in settings as suggested here : http://www.co-ment.org/ticket/86
Simon Descarpentries <sid@sopinspace.com>
parents:
532
diff
changeset
|
6 |
DISABLE_TRACKING = DEBUG |
|
6da1a12084a9
Add a DISABLE_TRACKING variable in settings as suggested here : http://www.co-ment.org/ticket/86
Simon Descarpentries <sid@sopinspace.com>
parents:
532
diff
changeset
|
7 |
|
|
6da1a12084a9
Add a DISABLE_TRACKING variable in settings as suggested here : http://www.co-ment.org/ticket/86
Simon Descarpentries <sid@sopinspace.com>
parents:
532
diff
changeset
|
8 |
|
| 0 | 9 |
ADMINS = ( |
10 |
# ('Your Name', 'your_email@domain.com'), |
|
11 |
) |
|
12 |
||
13 |
MANAGERS = ADMINS |
|
14 |
||
15 |
# Local time zone for this installation. Choices can be found here: |
|
16 |
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
|
17 |
# although not all choices may be available on all operating systems. |
|
18 |
# If running in a Windows environment this must be set to the same as your |
|
19 |
# system time zone. |
|
20 |
#TIME_ZONE = 'America/Chicago' |
|
21 |
TIME_ZONE = 'Europe/Paris' #UTC |
|
22 |
||
23 |
# it's not the format js client users will see the dates in ! |
|
24 |
# it's the format that's used to communicate dates to js client (python date -> JSON str -> parsed to js date) |
|
25 |
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
|
26 |
ALLOW_CLIENT_MODIF_ON_LAST_VERSION_ONLY = True |
| 0 | 27 |
|
28 |
# Language code for this installation. All choices can be found here: |
|
29 |
# http://www.i18nguy.com/unicode/language-identifiers.html |
|
30 |
LANGUAGE_CODE = 'en-us' |
|
31 |
||
32 |
SITE_ID = 1 |
|
33 |
||
34 |
# If you set this to False, Django will make some optimizations so as not |
|
35 |
# to load the internationalization machinery. |
|
36 |
USE_I18N = True |
|
37 |
||
38 |
# Absolute path to the directory that holds media. |
|
39 |
# Example: "/home/media/media.lawrence.com/" |
|
40 |
MEDIA_ROOT = '' |
|
41 |
||
42 |
import os |
|
43 |
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), "src/cm/site_media/") |
|
44 |
||
45 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
46 |
# trailing slash if there is a path component (optional in other cases). |
|
47 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
|
48 |
MEDIA_URL = '/site_media/' |
|
49 |
||
50 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
|
51 |
# trailing slash. |
|
52 |
# Examples: "http://foo.com/media/", "/media/". |
|
53 |
ADMIN_MEDIA_PREFIX = '/media/' |
|
54 |
||
55 |
LOGIN_URL = '/login/' |
|
56 |
||
57 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
58 |
# trailing slash if there is a path component (optional in other cases). |
|
59 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
|
60 |
#MEDIA_URL = SITE_URL + '/themedia/' |
|
61 |
||
62 |
# List of callables that know how to import templates from various sources. |
|
63 |
TEMPLATE_LOADERS = ( |
|
|
446
019889d4c614
Avoid warnings for deprecated instructions in djan 1.3
gibus
parents:
439
diff
changeset
|
64 |
'django.template.loaders.filesystem.Loader', |
|
019889d4c614
Avoid warnings for deprecated instructions in djan 1.3
gibus
parents:
439
diff
changeset
|
65 |
'django.template.loaders.app_directories.Loader', |
| 0 | 66 |
# 'django.template.loaders.eggs.load_template_source', |
67 |
) |
|
68 |
||
69 |
TEMPLATE_CONTEXT_PROCESSORS = ( |
|
70 |
'cm.context_processors.static', |
|
71 |
'cm.context_processors.tz', |
|
72 |
'cm.context_processors.utils', |
|
|
446
019889d4c614
Avoid warnings for deprecated instructions in djan 1.3
gibus
parents:
439
diff
changeset
|
73 |
'django.contrib.auth.context_processors.auth', |
| 0 | 74 |
'django.core.context_processors.request', |
75 |
"django.core.context_processors.i18n", |
|
76 |
"django.core.context_processors.media", |
|
77 |
'djangoflash.context_processors.flash', |
|
78 |
) |
|
79 |
||
80 |
MIDDLEWARE_CLASSES = ( |
|
| 479 | 81 |
'django.middleware.gzip.GZipMiddleware', |
| 0 | 82 |
'django.middleware.common.CommonMiddleware', |
83 |
'django.contrib.sessions.middleware.SessionMiddleware', |
|
84 |
'django.middleware.locale.LocaleMiddleware', |
|
85 |
'djangoflash.middleware.FlashMiddleware', |
|
86 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
87 |
'cm.middleware.CmMiddleware', |
|
88 |
) |
|
89 |
||
90 |
ROOT_URLCONF = 'urls' |
|
91 |
||
92 |
TEMPLATE_DIRS = ( |
|
93 |
) |
|
94 |
||
95 |
INSTALLED_APPS = ( |
|
96 |
'django.contrib.auth', |
|
97 |
'django.contrib.contenttypes', |
|
98 |
'django.contrib.sessions', |
|
99 |
'django.contrib.sites', |
|
100 |
'django.contrib.admin', |
|
101 |
'cm', |
|
102 |
'tagging', |
|
| 29 | 103 |
'django_extensions', # http://code.google.com/p/django-command-extensions/ |
104 |
'south', |
|
| 0 | 105 |
) |
106 |
||
107 |
_ = lambda s: s |
|
108 |
||
109 |
LANGUAGES = ( |
|
110 |
('fr', _(u'French')), |
|
111 |
('en', _(u'English')), |
|
| 84 | 112 |
('no', _('Norwegian')), |
|
124
4576a8264929
add pt_BR translation (thx Paulo RenĂ¡ da Silva SantarĂ©m & co)
raph
parents:
114
diff
changeset
|
113 |
('pt_BR', _('Brazilian Portuguese')), |
|
137
32f0cf5e62ce
added spanish translation (thx Alejandro Martin Ortin)
raph
parents:
132
diff
changeset
|
114 |
('es', _('Spanish')), |
| 204 | 115 |
('bg', _('Bulgarian')), |
| 461 | 116 |
('it', _('Italian')), |
| 0 | 117 |
) |
118 |
||
119 |
AUTH_PROFILE_MODULE = 'cm.UserProfile' |
|
120 |
||
121 |
# always upload file to disk to pipe them through converters |
|
122 |
FILE_UPLOAD_HANDLERS = ("django.core.files.uploadhandler.TemporaryFileUploadHandler",) |
|
123 |
||
124 |
# comt settings |
|
|
446
019889d4c614
Avoid warnings for deprecated instructions in djan 1.3
gibus
parents:
439
diff
changeset
|
125 |
PISTON_IGNORE_DUPE_MODELS = True |
| 0 | 126 |
|
127 |
# YUI version : set to js/lib/ version directory to be used |
|
| 602 | 128 |
YUI_VERSION = 'yui3-3.15.0' |
| 0 | 129 |
|
130 |
# base timezone used for client |
|
131 |
DEFAULT_TIME_ZONE = TIME_ZONE |
|
132 |
||
133 |
CACHE_BACKEND = 'locmem:///?timeout=3600&max_entries=400' |
|
134 |
||
135 |
try: |
|
136 |
from settings_local import * |
|
137 |
except ImportError: |
|
138 |
pass |