django 1.3 compat
This commit is contained in:
parent
fdb53cd77d
commit
a3cdba6eec
|
@ -84,7 +84,7 @@ STATICFILES_FINDERS = (
|
|||
)
|
||||
|
||||
# Make this unique, and don't share it with anybody.
|
||||
SECRET_KEY = '6(ogp5)w8^ztc^%6*3!47vb_tc4!*tj3tfmv0s*s2z8^^ayz2v'
|
||||
SECRET_KEY = 'django-admin-tools'
|
||||
|
||||
# List of callables that know how to import templates from various sources.
|
||||
TEMPLATE_LOADERS = (
|
||||
|
@ -114,7 +114,6 @@ TEMPLATE_CONTEXT_PROCESSORS = (
|
|||
'django.core.context_processors.i18n',
|
||||
'django.core.context_processors.media',
|
||||
'django.core.context_processors.static',
|
||||
'django.core.context_processors.tz',
|
||||
'django.core.context_processors.request',
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
)
|
||||
|
@ -126,7 +125,7 @@ TEMPLATE_DIRS = (
|
|||
PROJECT_PATH + '/templates',
|
||||
)
|
||||
|
||||
INSTALLED_APPS = (
|
||||
INSTALLED_APPS = [
|
||||
'admin_tools',
|
||||
'admin_tools.dashboard',
|
||||
'admin_tools.menu',
|
||||
|
@ -143,38 +142,7 @@ INSTALLED_APPS = (
|
|||
# 'django.contrib.admindocs',
|
||||
'south',
|
||||
'test_app',
|
||||
)
|
||||
|
||||
# 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,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
SECRET_KEY = 'django-admin-tools'
|
||||
]
|
||||
|
||||
try:
|
||||
import django_coverage
|
||||
|
|
Loading…
Reference in New Issue