|
1 DEBUG = True |
|
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"} |
|
22 |
|
23 # Language code for this installation. All choices can be found here: |
|
24 # http://www.i18nguy.com/unicode/language-identifiers.html |
|
25 LANGUAGE_CODE = 'en-us' |
|
26 |
|
27 SITE_ID = 1 |
|
28 |
|
29 # If you set this to False, Django will make some optimizations so as not |
|
30 # to load the internationalization machinery. |
|
31 USE_I18N = True |
|
32 |
|
33 # Absolute path to the directory that holds media. |
|
34 # Example: "/home/media/media.lawrence.com/" |
|
35 MEDIA_ROOT = '' |
|
36 |
|
37 import os |
|
38 MEDIA_ROOT = os.path.join(os.path.dirname(__file__), "src/cm/site_media/") |
|
39 |
|
40 # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
41 # trailing slash if there is a path component (optional in other cases). |
|
42 # Examples: "http://media.lawrence.com", "http://example.com/media/" |
|
43 MEDIA_URL = '/site_media/' |
|
44 |
|
45 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
|
46 # trailing slash. |
|
47 # Examples: "http://foo.com/media/", "/media/". |
|
48 ADMIN_MEDIA_PREFIX = '/media/' |
|
49 |
|
50 LOGIN_URL = '/login/' |
|
51 |
|
52 # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
53 # trailing slash if there is a path component (optional in other cases). |
|
54 # Examples: "http://media.lawrence.com", "http://example.com/media/" |
|
55 #MEDIA_URL = SITE_URL + '/themedia/' |
|
56 |
|
57 # List of callables that know how to import templates from various sources. |
|
58 TEMPLATE_LOADERS = ( |
|
59 'django.template.loaders.filesystem.load_template_source', |
|
60 'django.template.loaders.app_directories.load_template_source', |
|
61 # 'django.template.loaders.eggs.load_template_source', |
|
62 ) |
|
63 |
|
64 TEMPLATE_CONTEXT_PROCESSORS = ( |
|
65 'cm.context_processors.static', |
|
66 'cm.context_processors.tz', |
|
67 'cm.context_processors.utils', |
|
68 'django.core.context_processors.auth', |
|
69 'django.core.context_processors.request', |
|
70 "django.core.context_processors.i18n", |
|
71 "django.core.context_processors.media", |
|
72 'djangoflash.context_processors.flash', |
|
73 'django.core.context_processors.request', |
|
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', |
|
98 'django_extensions', # http://code.google.com/p/django-command-extensions/ |
|
99 ) |
|
100 |
|
101 _ = lambda s: s |
|
102 |
|
103 LANGUAGES = ( |
|
104 ('fr', _(u'French')), |
|
105 ('en', _(u'English')), |
|
106 # ('no', _('Norwegian')), |
|
107 ) |
|
108 |
|
109 AUTH_PROFILE_MODULE = 'cm.UserProfile' |
|
110 |
|
111 # always upload file to disk to pipe them through converters |
|
112 FILE_UPLOAD_HANDLERS = ("django.core.files.uploadhandler.TemporaryFileUploadHandler",) |
|
113 |
|
114 # comt settings |
|
115 |
|
116 # YUI version : set to js/lib/ version directory to be used |
|
117 YUI_VERSION = 'yui3.0.0' |
|
118 |
|
119 |
|
120 # base timezone used for client |
|
121 DEFAULT_TIME_ZONE = TIME_ZONE |
|
122 |
|
123 CACHE_BACKEND = 'locmem:///?timeout=3600&max_entries=400' |
|
124 |
|
125 try: |
|
126 from settings_local import * |
|
127 except ImportError: |
|
128 pass |