diff options
author | Wojciech Polak <polak@gnu.org> | 2013-04-09 19:59:50 +0200 |
---|---|---|
committer | Wojciech Polak <polak@gnu.org> | 2013-04-09 20:01:47 +0200 |
commit | 11de8715829bd3744de9542dd77a6d658ba519d8 (patch) | |
tree | b8afe4a8e29d2fbfbce2b53b0cde319aafbe5ad2 /dicoweb/settings-sample.py | |
parent | 8f61a0bf3cd35445dc5cb5c18faf69d3a1d32680 (diff) | |
download | dico-11de8715829bd3744de9542dd77a6d658ba519d8.tar.gz dico-11de8715829bd3744de9542dd77a6d658ba519d8.tar.bz2 |
Support Django 1.5.
Diffstat (limited to 'dicoweb/settings-sample.py')
-rw-r--r-- | dicoweb/settings-sample.py | 44 |
1 files changed, 35 insertions, 9 deletions
diff --git a/dicoweb/settings-sample.py b/dicoweb/settings-sample.py index 2ccd8ca..7e1f163 100644 --- a/dicoweb/settings-sample.py +++ b/dicoweb/settings-sample.py @@ -27,17 +27,10 @@ ADMINS = ( ) MANAGERS = ADMINS -DATABASE_ENGINE = '' -DATABASE_NAME = '' -DATABASE_USER = '' -DATABASE_PASSWORD = '' -DATABASE_HOST = '' -DATABASE_PORT = '' - SITE_ID = 1 USE_I18N = True -TIME_ZONE = 'Europe/Warsaw' +TIME_ZONE = 'UTC' LANGUAGE_CODE = 'en-us' LANGUAGE_COOKIE_NAME = 'dicoweb_lang' @@ -59,7 +52,7 @@ CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True MEDIA_ROOT = os.path.join(SITE_ROOT, 'static') # URL that handles the media served from MEDIA_ROOT. -MEDIA_URL = 'static/' +MEDIA_URL = '/static/' # Make this unique, and don't share it with anybody. SECRET_KEY = 'SET THIS TO A RANDOM STRING' @@ -92,5 +85,38 @@ INSTALLED_APPS = ( 'dicoweb', ) +# A sample logging configuration. The only tangible logging +# performed by this configuration is to send an email to +# the site admins on every HTTP 500 error when DEBUG=False. +# See http://docs.djangoproject.com/en/dev/topics/logging for +# more details on how to customize your logging configuration. +LOGGING = { + 'version': 1, + 'disable_existing_loggers': False, + 'filters': { + 'require_debug_false': { + '()': 'django.utils.log.RequireDebugFalse' + } + }, + 'handlers': { + 'mail_admins': { + 'level': 'ERROR', + 'filters': ['require_debug_false'], + 'class': 'django.utils.log.AdminEmailHandler' + } + }, + 'loggers': { + 'django.request': { + 'handlers': ['mail_admins'], + 'level': 'ERROR', + 'propagate': True, + }, + } +} + +# +# Dicoweb specific settings. +# + DICT_SERVERS = ('gnu.org.ua',) DICT_TIMEOUT = 10 |