equal
deleted
inserted
replaced
63 #MEDIA_URL = '' |
63 #MEDIA_URL = '' |
64 |
64 |
65 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
65 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
66 # trailing slash. |
66 # trailing slash. |
67 # Examples: "http://foo.com/media/", "/media/". |
67 # Examples: "http://foo.com/media/", "/media/". |
68 #ADMIN_MEDIA_PREFIX = '/media/' |
|
69 |
68 |
70 #LDT_MEDIA_PREFIX = '/ldt/' |
69 #LDT_MEDIA_PREFIX = '/ldt/' |
71 |
70 |
72 # Make this unique, and don't share it with anybody. |
71 # Make this unique, and don't share it with anybody. |
73 SECRET_KEY = 't^lii5_z@tho$%6t&b#dm#t9nz$$ylyclxvkdiyqbl+(dnt(ma' |
72 SECRET_KEY = 't^lii5_z@tho$%6t&b#dm#t9nz$$ylyclxvkdiyqbl+(dnt(ma' |
128 'django.contrib.sites', |
127 'django.contrib.sites', |
129 'django.contrib.messages', |
128 'django.contrib.messages', |
130 'django.contrib.admin', |
129 'django.contrib.admin', |
131 'django.contrib.staticfiles', |
130 'django.contrib.staticfiles', |
132 'haystack', |
131 'haystack', |
133 'ldtplatform', |
132 'tastypie', |
|
133 'guardian', |
|
134 'tagging', |
134 'registration', |
135 'registration', |
135 'tagging', |
|
136 'ldt', |
|
137 'ldt.core', |
|
138 'ldt.ldt_utils', |
|
139 'ldt.text', |
|
140 'ldt.user', |
|
141 'ldt.management', |
|
142 'ldt.indexation', |
|
143 'oauth_provider', |
136 'oauth_provider', |
144 'django_openid_consumer', |
137 'django_openid_consumer', |
145 'social_auth', |
138 'social_auth', |
146 'south', |
139 'south', |
147 'guardian', |
|
148 'sorl.thumbnail', |
140 'sorl.thumbnail', |
149 'tastypie', |
141 'ldt', |
150 'hashcut', |
142 'ldt.core', |
|
143 'ldt.security', |
|
144 'ldt.user', |
|
145 'ldt.ldt_utils', |
|
146 'ldt.text', |
|
147 'ldt.management', |
|
148 'ldt.indexation', |
|
149 # 'hashcut', |
151 'chunked_uploads', |
150 'chunked_uploads', |
152 ) |
151 'ldtplatform', |
153 |
152 ) |
154 AUTH_PROFILE_MODULE = 'user.UserProfile' |
153 |
|
154 #AUTH_PROFILE_MODULE = 'user.UserProfile' |
|
155 AUTH_USER_MODEL = 'user.LdtUser' |
|
156 INITIAL_CUSTOM_USER_MIGRATION = "0009_rename_auth_user_to_user_ldt_user" |
155 |
157 |
156 DECOUPAGE_BLACKLIST = ( |
158 DECOUPAGE_BLACKLIST = ( |
157 "de_PPP", |
159 "de_PPP", |
158 ) |
160 ) |
159 |
161 |
173 # 'social_auth.backends.contrib.orkut.OrkutBackend', |
175 # 'social_auth.backends.contrib.orkut.OrkutBackend', |
174 'social_auth.backends.OpenIDBackend', |
176 'social_auth.backends.OpenIDBackend', |
175 'django.contrib.auth.backends.ModelBackend', |
177 'django.contrib.auth.backends.ModelBackend', |
176 'guardian.backends.ObjectPermissionBackend', |
178 'guardian.backends.ObjectPermissionBackend', |
177 ) |
179 ) |
178 SOCIAL_AUTH_IMPORT_BACKENDS = ( |
180 #SOCIAL_AUTH_IMPORT_BACKENDS = ( |
179 'myproy.social_auth_extra_services', |
181 # 'myproy.social_auth_extra_services', |
180 ) |
182 #) |
181 |
183 |
182 ACCOUNT_ACTIVATION_DAYS = 7 |
184 ACCOUNT_ACTIVATION_DAYS = 7 |
183 |
185 |
184 LDT_MAX_SEARCH_NUMBER = 50 |
186 LDT_MAX_SEARCH_NUMBER = 50 |
185 LDT_JSON_DEFAULT_INDENT = 0 |
187 LDT_JSON_DEFAULT_INDENT = 0 |
264 PROFILE_REDIRECT_URL = SRC_BASE_URL + 'auth_accounts/create/profile' |
266 PROFILE_REDIRECT_URL = SRC_BASE_URL + 'auth_accounts/create/profile' |
265 |
267 |
266 if not "LOGIN_ERROR_URL" in locals(): |
268 if not "LOGIN_ERROR_URL" in locals(): |
267 LOGIN_ERROR_URL = SRC_BASE_URL + 'accounts/login' |
269 LOGIN_ERROR_URL = SRC_BASE_URL + 'accounts/login' |
268 |
270 |
269 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
|
270 # trailing slash. |
|
271 # Examples: "http://foo.com/media/", "/media/". |
|
272 if not "ADMIN_MEDIA_PREFIX" in locals(): |
|
273 ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/' |
|
274 # Used in a lot of templates |
271 # Used in a lot of templates |
275 if not "LDT_MEDIA_PREFIX" in locals(): |
272 if not "LDT_MEDIA_PREFIX" in locals(): |
276 LDT_MEDIA_PREFIX = STATIC_URL + 'ldt/' |
273 LDT_MEDIA_PREFIX = STATIC_URL + 'ldt/' |
277 # URL that handles the media served from MEDIA_ROOT. |
274 # URL that handles the media served from MEDIA_ROOT. |
278 if not "MEDIA_URL" in locals(): |
275 if not "MEDIA_URL" in locals(): |
279 MEDIA_URL = BASE_URL + 'static/media/' |
276 MEDIA_URL = BASE_URL + 'static/media/' |
280 |
277 |
281 #forced settings |
278 #forced settings |
282 MAX_TAG_LENGTH = 255 |
279 MAX_TAG_LENGTH = 255 |
283 FORCE_LOWERCASE_TAGS = True |
280 FORCE_LOWERCASE_TAGS = True |
|
281 |
284 |
282 |
285 |
283 |