# Path: madewithwagtail/settings/grains/logging.py
# DEV_LOGGING = {
#     'version': 1,
#     'disable_existing_loggers': True,
#     'formatters': {},
#     'handlers': {
#         "dev_console": {
#             "level": "DEBUG",
#             "class": "logging.StreamHandler",
#             "stream": sys.stderr,
#         },
#     },
#     "root": {  # using root logger to catch and log all interesting messages
#         "level": "WARNING",
#         "handlers": ["dev_console"],
#     },
#     'loggers': {
#         'django': {
#             'handlers': ['dev_console'],
#             'propagate': False,
#             'level': 'INFO',
#         },
#         'core': {
#             'handlers': ['dev_console'],
#             'propagate': False,
#             'level': 'DEBUG',
#         }
#     }
# }
# 
# Path: madewithwagtail/settings/grains/cache.py
# DEV_CACHES = {
#     'default': {
#         'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
#     }
# }


from .base import *
from .grains.logging import DEV_LOGGING
from .grains.cache import *
from .grains.cache import DEV_CACHES
        ],
        'APP_DIRS': True,
        'OPTIONS': {
            'debug': True,
            'context_processors': ['django.template.context_processors.debug'] + CONTEXT_PROCESSORS
        }
    },
]


# Analytics stuff
GOOGLE_TAG_MANAGER = False
GOOGLE_ANALYTICS_KEY = False
GOOGLE_MAPS_API_KEY = False

DEBUG = True

# To have fake email backend
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

# As required by debug_toolbar
INTERNAL_IPS = (
    '10.0.2.2',
    '127.0.0.1',
)

INSTALLED_APPS += (
    'wagtail.contrib.wagtailstyleguide',
)


# Path: madewithwagtail/settings/grains/logging.py
# DEV_LOGGING = {
#     'version': 1,
#     'disable_existing_loggers': True,
#     'formatters': {},
#     'handlers': {
#         "dev_console": {
#             "level": "DEBUG",
#             "class": "logging.StreamHandler",
#             "stream": sys.stderr,
#         },
#     },
#     "root": {  # using root logger to catch and log all interesting messages
#         "level": "WARNING",
#         "handlers": ["dev_console"],
#     },
#     'loggers': {
#         'django': {
#             'handlers': ['dev_console'],
#             'propagate': False,
#             'level': 'INFO',
#         },
#         'core': {
#             'handlers': ['dev_console'],
#             'propagate': False,
#             'level': 'DEBUG',
#         }
#     }
# }
# 
# Path: madewithwagtail/settings/grains/cache.py
# DEV_CACHES = {
#     'default': {
#         'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
#     }
# }


# Path: madewithwagtail/settings/dev.py
from .base import *
from .grains.logging import DEV_LOGGING
from .grains.cache import *
from .grains.cache import DEV_CACHES

        ],
        'APP_DIRS': True,
        'OPTIONS': {
            'debug': True,
            'context_processors': ['django.template.context_processors.debug'] + CONTEXT_PROCESSORS
        }
    },
]


# Analytics stuff
GOOGLE_TAG_MANAGER = False
GOOGLE_ANALYTICS_KEY = False
GOOGLE_MAPS_API_KEY = False

DEBUG = True

# To have fake email backend
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

# As required by debug_toolbar
INTERNAL_IPS = (
    '10.0.2.2',
    '127.0.0.1',
)

INSTALLED_APPS += (
    'wagtail.contrib.wagtailstyleguide',
)


LOGGING = DEV_LOGGING.copy()