# -*- coding: utf-8 -*-
'''
Local settings

- Runs in Debug mode
- Uses console backend for emails
- Use Django Debug Toolbar
'''

from .common import *  # noqa

# DEBUG
# ------------------------------------------------------------------------------
DEBUG = env.bool('DJANGO_DEBUG', default=True)
TEMPLATE_DEBUG = DEBUG

# SECRET CONFIGURATION
# ------------------------------------------------------------------------------
# See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
# Note: This key only used for development and testing.
SECRET_KEY = env("DJANGO_SECRET_KEY", default='CHANGEME!!!')

# Mail settings
# ------------------------------------------------------------------------------
EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025
EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
                    default='django.core.mail.backends.console.EmailBackend')


# CACHING
# ------------------------------------------------------------------------------
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
        'LOCATION': ''
    }
}

# django-debug-toolbar
# ------------------------------------------------------------------------------
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INSTALLED_APPS += ('debug_toolbar', 'django_extensions',)

INTERNAL_IPS = ('127.0.0.1', '10.0.2.2',)

DEBUG_TOOLBAR_CONFIG = {
    'DISABLE_PANELS': [
        'debug_toolbar.panels.redirects.RedirectsPanel',
    ],
    'SHOW_TEMPLATE_CONTEXT': True,
}

# TESTING
# ------------------------------------------------------------------------------
TEST_RUNNER = 'django.test.runner.DiscoverRunner'

# Your local stuff: Below this line define 3rd party library settings

@@ -42,17 +42,16 @@
 s%0A%0A- Run
-s
  in Debu
@@ -62,17 +62,16 @@
 de%0A- Use
-s
  console
@@ -92,19 +92,19 @@
 mails%0A- 
-Use
+Add
  Django 
@@ -117,16 +117,47 @@
 Toolbar%0A
+- Add django-extensions as app%0A
 '''%0A%0Afro
@@ -899,17 +899,16 @@
 kend')%0A%0A
-%0A
 # CACHIN
@@ -1337,28 +1337,8 @@
 r', 
-'django_extensions',
 )%0A%0AI
@@ -1527,19 +1527,163 @@
 : True,%0A
-
 %7D%0A%0A
+# django-extensions%0A# ------------------------------------------------------------------------------%0AINSTALLED_APPS += ('django_extensions', )%0A%0A
 # TESTIN

add some documentation and formating