"""
====================
learnpython.settings
====================
Default configuration for Learn Python site.
You could customize things by overwrite these or other settings of Flask and
other used extensions in ``settings_local`` module which should placed next to
current one.
"""
import os
DIRNAME = os.path.abspath(os.path.dirname(__file__))
env = os.environ.get
rel = lambda *parts: os.path.abspath(os.path.join(DIRNAME, *parts))
# Debug settings
DEBUG = False
# Babel settings
BABEL_DEFAULT_LOCALE = 'ru'
BABEL_DEFAULT_TIMEZONE = 'Europe/Kiev'
# FlatPages settings
FLATPAGES_EXTENSION = '.yml'
FLATPAGES_HTML_RENDERER = 'learnpython.utils:restructuredtext_filter'
FLATPAGES_ROOT = rel('data')
# Mail settings
DEFAULT_MAIL_SENDER = 'Learn Python