65 lines
1.7 KiB
Python
65 lines
1.7 KiB
Python
# -*- python -*-
|
|
# pymode:lint_ignore=W0401,E501
|
|
"""
|
|
Development settings and globals based on :py:mod:`gvaldap.settings.base`.
|
|
|
|
"""
|
|
|
|
from __future__ import absolute_import
|
|
|
|
# use import * to import all settings from base
|
|
from .base import * # NOQA
|
|
|
|
|
|
# ######### 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
|
|
TEMPLATES[0]['OPTIONS']['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 # noqa
|
|
INSTALLED_APPS += (
|
|
'debug_toolbar',
|
|
)
|
|
|
|
MIDDLEWARE += (
|
|
'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 ['ldapentities', 'ldaptasks']]))
|
|
|
|
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
|