# coding=utf-8
INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'raven.contrib.django.raven_compat',
    'channel',
    'hera',
    'statistic',
    'sms',
    'answer',
    'social',
    'pay',
    'api',
    'hippo',
    'doctor',
    'relation',
    'search',
    'rpc',
    'utils.data_sync',
    'utils.id_blur',
    'message',
    'community',
    'finance',
    'maidan',
    'talos',
    'trans2es',
    'injection.data_sync',
    'themis',
    'graphene_django',
    'rival',
    'doris',
    'gm_test',
    'verita',
    'hera.viewmodels',
    'point',
    'lasker',  # 名医大赏
    'mimas',
    'wiki',
    'polymer',
    'gql',
    'cashback',
    'weikuan',
    'lipstick',
    'call_center',
    'facialactivity',
    'category',
    'group',
    'agile',
    'yibaopay',
    'launch',  # 注册流程
    'mark',  # 打卡
    'variety_show',  # 综艺活动
)

MIDDLEWARE_CLASSES = (
    'gm_tracer.middleware.TracerMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'helios.DjangoL5dMiddleware',
)
USE_I18N = True
USE_L10N = True
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
ROOT_URLCONF = 'gaia.urls'
WSGI_APPLICATION = 'gaia.wsgi.application'
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'Asia/Shanghai'
CELERY_TIMEZONE = 'Asia/Shanghai'
TEMPLATES = []
TEST_RUNNER = 'tests.ut.GaiaDiscoverRunner'

MIMAS_DB_NAME = 'mimas'
MESSAGE_DB_NAME = 'message'
DATABASE_ROUTERS = ['gaia.routers.MimasRouter', 'gaia.routers.MessageRouter', 'gaia.routers.DynamicRouter',
                    'gaia.routers.DiagnosisRouter','gaia.routers.PoseidonRouter', 'gaia.routers.PlasticRouter']
