Jan Dittberner
d5bba7a22d
- don't execute celery tasks directly - introduce optional parameters to fileserver tasks to allow chaining - handle user/group/key create and delete tasks in new osusers.signals class - adapt unit tests - change TaskResults model to store the task signatures - generalize the local settings' logging configuration
65 lines
1.8 KiB
Python
65 lines
1.8 KiB
Python
# -*- python -*-
|
|
# pymode:lint_ignore=W0401,E501
|
|
"""Development settings and globals."""
|
|
|
|
from __future__ import absolute_import
|
|
|
|
from .base import *
|
|
|
|
|
|
########## DEBUG CONFIGURATION
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
|
|
DEBUG = True
|
|
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug
|
|
TEMPLATE_DEBUG = DEBUG
|
|
########## END DEBUG CONFIGURATION
|
|
|
|
|
|
########## EMAIL CONFIGURATION
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
|
|
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
|
########## END EMAIL CONFIGURATION
|
|
|
|
|
|
########## CACHE CONFIGURATION
|
|
# See: https://docs.djangoproject.com/en/dev/ref/settings/#caches
|
|
CACHES = {
|
|
'default': {
|
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
|
}
|
|
}
|
|
########## END CACHE CONFIGURATION
|
|
|
|
|
|
########## TOOLBAR CONFIGURATION
|
|
# See: http://django-debug-toolbar.readthedocs.org/en/latest/installation.html#explicit-setup
|
|
INSTALLED_APPS += (
|
|
'debug_toolbar',
|
|
)
|
|
|
|
MIDDLEWARE_CLASSES += (
|
|
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
|
)
|
|
|
|
LOGGING['handlers'].update({
|
|
'console': {
|
|
'level': 'DEBUG',
|
|
'class': 'logging.StreamHandler',
|
|
'formatter': 'simple',
|
|
}
|
|
})
|
|
LOGGING['loggers'].update(dict(
|
|
[(key, {'handlers': ['console'], 'level': 'DEBUG', 'propagate': True,})
|
|
for key in [
|
|
'dashboard', 'domains', 'fileservertasks', 'gvacommon',
|
|
'gvawebcore', 'hostingpackages', 'ldaptasks', 'managemails',
|
|
'mysqltasks', 'osusers', 'pgsqltasks', 'taskresults',
|
|
'userdbs', 'websites']]))
|
|
|
|
DEBUG_TOOLBAR_PATCH_SETTINGS = False
|
|
|
|
# http://django-debug-toolbar.readthedocs.org/en/latest/installation.html
|
|
INTERNAL_IPS = ('127.0.0.1', '10.0.2.2')
|
|
########## END TOOLBAR CONFIGURATION
|