equal
deleted
inserted
replaced
210 }, |
210 }, |
211 } |
211 } |
212 } |
212 } |
213 |
213 |
214 NB_RECORDS_BY_PAGE = 20 |
214 NB_RECORDS_BY_PAGE = 20 |
|
215 #some control on the pagination appareance |
|
216 PAGINATOR_VISIBLE_RANGE = 5 #number of visible pages |
|
217 PAGINATOR_START_RANGE = 2 #number of pages kept at the beggining and at the end of the range |
|
218 |
215 |
219 |
216 HAYSTACK_CONNECTIONS = { |
220 HAYSTACK_CONNECTIONS = { |
217 'default': { |
221 'default': { |
218 'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine', |
222 'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine', |
219 'URL': '', |
223 'URL': '', |
283 ADMIN_SCRIPT = {} |
287 ADMIN_SCRIPT = {} |
284 |
288 |
285 SCRIPT_WAIT = .250 |
289 SCRIPT_WAIT = .250 |
286 SCRIPT_MAX_WAIT = 40 # * SCRIPT_WAIT = 10 sec |
290 SCRIPT_MAX_WAIT = 40 # * SCRIPT_WAIT = 10 sec |
287 |
291 |
|
292 |
288 from config import * # @UnusedWildImport |
293 from config import * # @UnusedWildImport |
289 |
294 |
290 if not "SRC_BASE_URL" in locals(): |
295 if not "SRC_BASE_URL" in locals(): |
291 SRC_BASE_URL = BASE_URL + __name__.split('.')[0] + '/' |
296 SRC_BASE_URL = BASE_URL + __name__.split('.')[0] + '/' |
292 if not "LOGIN_URL" in locals(): |
297 if not "LOGIN_URL" in locals(): |