"""Development settings and globals."""


from os.path import join, normpath

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


########## DATABASE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': normpath(join(DJANGO_ROOT, 'default.db')),
        'USER': '',
        'PASSWORD': '',
        'HOST': '',
        'PORT': '',
    }
}
########## END DATABASE 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: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
INSTALLED_APPS += (
    'debug_toolbar',
    'django_extensions',
)

# See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
INTERNAL_IPS = ('127.0.0.1',)

# See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
MIDDLEWARE_CLASSES += (
    'debug_toolbar.middleware.DebugToolbarMiddleware',
)

# See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
DEBUG_TOOLBAR_CONFIG = {
    'INTERCEPT_REDIRECTS': False,
    'SHOW_TEMPLATE_CONTEXT': True,
}
########## END TOOLBAR CONFIGURATION

@@ -1144,32 +1144,915 @@
  CONFIGURATION%0A%0A
+########## LOGGING CONFIGURATION%0A%0ALOGGING = %7B%0A    'version': 1,%0A    'formatters': %7B%0A        'verbose': %7B%0A            'format': '%25(levelname)s %25(asctime)s %25(module)s %25(process)d %25(thread)d %25(message)s'%0A        %7D,%0A        'simple': %7B%0A            'format': '%25(levelname)s %25(message)s'%0A        %7D,%0A    %7D,%0A    'handlers': %7B%0A        'console': %7B%0A            'level': 'DEBUG',%0A            'class': 'logging.StreamHandler',%0A            'formatter': 'simple'%0A        %7D,%0A        'null': %7B%0A            'level': 'DEBUG',%0A            'class': 'django.utils.log.NullHandler',%0A        %7D%0A     %7D,%0A    'loggers': %7B%0A        'django': %7B%0A            'handlers': %5B'console'%5D,%0A            'level': 'DEBUG',%0A            'propagate': True,%0A            %7D,%0A        %7D,%0A        'django.db.backends': %7B%0A            'handlers': %5B'null'%5D,%0A            'level': 'DEBUG',%0A            'propagate': True,%0A        %7D%0A    %7D%0A
 %0A########## TOOL

create a simplified logging setup for development