text: """
  Local settings
  
  - Run in Debug mode
  
  - Use console backend for emails
  
  - Add Django Debug Toolbar
  - Add django-extensions as app
  """
  
  from .base import *  # noqa
  
  # DEBUG
  # ------------------------------------------------------------------------------
  DEBUG = env.bool('DJANGO_DEBUG', default=True)
  TEMPLATES[0]['OPTIONS']['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='JoSFa+zip%}rS?L3K~:,Y6jP$}~qBXFBShQ>ALf`q!fD{&m8-E')
  
  # Mail settings
  # ------------------------------------------------------------------------------
  
  ALLOWED_HOSTS = ('.ngrok.io', 'localhost', )
  
  EMAIL_PORT = 1025
  
  EMAIL_HOST = 'localhost'
  EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
                      default='django.core.mail.backends.console.EmailBackend')
  
  AWS_ACCESS_KEY_ID = env('DJANGO_AWS_ACCESS_KEY_ID')
  AWS_SECRET_ACCESS_KEY = env('DJANGO_AWS_SECRET_ACCESS_KEY')
  AWS_STORAGE_BUCKET_NAME = env('DJANGO_AWS_STORAGE_BUCKET_NAME')
  
  # CACHING
  # ------------------------------------------------------------------------------
  CACHES = {
      'default': {
          'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
          'LOCATION': ''
      }
  }
  
  # django-debug-toolbar
  # ------------------------------------------------------------------------------
  #MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware', ]
  #INSTALLED_APPS += ['debug_toolbar', ]
  
  INTERNAL_IPS = ['127.0.0.1', '10.0.2.2', ]
  
  
  import socket
  import os
  # tricks to have debug toolbar when developing with docker
  if os.environ.get('USE_DOCKER') == 'yes':
      ip = socket.gethostbyname(socket.gethostname())
      INTERNAL_IPS += [ip[:-1] + '1']
  
  DEBUG_TOOLBAR_CONFIG = {
      'DISABLE_PANELS': [
          'debug_toolbar.panels.redirects.RedirectsPanel',
      ],
      'SHOW_TEMPLATE_CONTEXT': True,
      'HIDE_IN_STACKTRACES': []
  }
  
  MSL_SITE_HOST = 'http://localhost:3002'
  
  # django-extensions
  # ------------------------------------------------------------------------------
  INSTALLED_APPS += ['django_extensions', ]
  
  # TESTING
  # ------------------------------------------------------------------------------
  TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  
  ########## CELERY
  # In development, all tasks will be executed locally by blocking until the task returns
  CELERY_ALWAYS_EAGER = True
  ########## END CELERY
  
  # Your local stuff: Below this line define 3rd party library settings
  # ------------------------------------------------------------------------------
  
  LOGGING = {
      'disable_existing_loggers': False,
      'version': 1,
      'handlers': {
          'console': {
              # logging handler that outputs log messages to terminal
              'class': 'logging.StreamHandler',
              'level': 'DEBUG', # message level to be written to console
          },
      },
      'loggers': {
          '': {
              # this sets root level logger to log debug and higher level
              # logs to console. All other loggers inherit settings from
              # root level logger.
              'handlers': ['console'],
              'level': 'DEBUG',
              'propagate': False, # this tells logger to send logging message
              # to its parent (will send if set to True)
          },
          'django.db': {
              'level': 'DEBUG',
          },
      },
  }
  
  GROOVES_ENDPOINT = 'http://brudil-2.local:6789'
  GROOVES_QUERY_TOKEN = 'testtoken'
  