Jan Dittberner
fb1f31a9bc
This commit fixes all warnings created by flake8 by removing unused imports and variable assignments. Some wrongly indented lines are now indented correctly.
66 lines
1.8 KiB
Python
66 lines
1.8 KiB
Python
# -*- python -*-
|
|
# pymode:lint_ignore=W0401,E501
|
|
"""Development settings and globals."""
|
|
|
|
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
|
|
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 # noqa
|
|
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
|