import os

from .settings import *


DEBUG = True

ALLOWED_HOSTS = None

MEDIA_ROOT = os.path.join(BASE_DIR, 'media')

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'filters': {
        'require_debug_false': {
            '()': 'django.utils.log.RequireDebugFalse'
        },
    },
    'handlers': {
        # Send all messages to console, add to loggers for local debugging
        'console': {
            'level': 'DEBUG',
            'class': 'logging.StreamHandler',
        },
    },
    'loggers': {
        '': {
            'handlers': ['console'],
            'level': 'DEBUG',
            'propagate': True,
        },
        'django.request': {
            'handlers': ['console'],
            'level': 'ERROR',
            'propagate': True,
        },
    }
}

# Lazythumbs config

LAZYTHUMBS_CACHE_TIMEOUT = 10
LAZYTHUMBS_404_CACHE_TIMEOUT = 10
