qmsk_www/settings.py
author Tero Marttila <terom@paivola.fi>
Sun, 14 Sep 2014 02:15:25 +0300
changeset 202 da5de3a97efb
parent 197 11a6d8fea463
permissions -rw-r--r--
pages: Site, footer with modified, basic css styles, page tree types
"""
Django settings for qmsk_www project.

For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""

# Quick-start development settings - unsuitable for production
# 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 = []


## Application definition
INSTALLED_APPS = (
    'django.contrib.staticfiles',
)

MIDDLEWARE_CLASSES = (

)

ROOT_URLCONF = 'qmsk_www.urls'

WSGI_APPLICATION = 'qmsk_www.wsgi.application'


## Database
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases

DATABASES = {

}

## Internationalization
# https://docs.djangoproject.com/en/1.7/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True

## Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/
STATIC_URL = '/static/'
STATICFILES_DIRS = (
    './qmsk_www/static',
)

## Site templates
TEMPLATE_DIRS = (
    './qmsk_www/templates',
)

## 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',
        }
    },
}

## Custom
INSTALLED_APPS += (
    'qmsk_www_pages',
)

QMSK_WWW_PAGES_DIR = './pages'
QMSK_WWW_PAGES_SITE = "qmsk.net"