qmsk_www/settings/development.py
author Tero Marttila <terom@paivola.fi>
Sun, 14 Sep 2014 04:16:52 +0300
changeset 214 1048b9081edc
child 109 2843f7d18fe6
permissions -rw-r--r--
qmsk_www split settings with production support
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '&e#@fir!k-*w(=0$@j&0guyv8qq*mh7_55j6w@2=hm0x9^ya-2'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

TEMPLATE_DEBUG = True

ALLOWED_HOSTS = []

## Logging
LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'qmsk': {
            'format': '[%(levelname)5s] %(module)20s:%(funcName)-20s : %(message)s',
        },
    },
    'handlers': {
        'console': {
            'level':        'DEBUG',
            'class':        'logging.StreamHandler',
            'formatter':    'qmsk',
        },
    },
    'loggers': {
        'qmsk_www_pages': {
            'handlers': [ 'console' ],
            'level': 'INFO',
        }
    },
}