diff -r 80317ff7192b -r 4671c9fd69b5 src/ldtplatform/config.py.tmpl --- a/src/ldtplatform/config.py.tmpl Fri Feb 15 12:06:30 2013 +0100 +++ b/src/ldtplatform/config.py.tmpl Wed Feb 27 00:19:02 2013 +0100 @@ -36,6 +36,9 @@ # DO NOT forget to do command line ./manage.py collectstatic to gather static media into the web/static folder STATIC_ROOT = BASE_STATIC_ROOT + "site/" +# Make this unique, and don't share it with anybody. +SECRET_KEY = '%(secret_key)s' + # PATH to the ffmpeg executable, used to know automatically the media file duration FFMPEG_PATH = "%(ffmpeg_path)s" @@ -76,6 +79,11 @@ LOGGING = { 'version': 1, 'disable_existing_loggers': False, + 'filters': { + 'require_debug_false': { + '()': 'django.utils.log.RequireDebugFalse' + } + }, 'formatters' : { 'simple' : { 'format': "%(asctime)s - %(levelname)s : %(message)s", @@ -87,6 +95,7 @@ 'handlers': { 'mail_admins': { 'level': 'ERROR', + 'filters': ['require_debug_false'], 'class': 'django.utils.log.AdminEmailHandler' }, 'stream_to_console': { @@ -161,3 +170,5 @@ #'INDEX_NAME': 'ldt', }, } + +LDT_INDEXATION_INSERT_BATCH_SIZE = 5000 \ No newline at end of file