-
Notifications
You must be signed in to change notification settings - Fork 74
/
config.py
42 lines (34 loc) · 919 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#encoding=utf-8
import os
# sql seting from SAE
# from sae.const import (MYSQL_HOST, MYSQL_HOST_S,
# MYSQL_PORT, MYSQL_USER, MYSQL_PASS, MYSQL_DB
# )
DEBUG = False
CSRF_ENABLED = True
SECRET_KEY = 'you-guess'
REGISTRATION_CODE = 'zhuchema'
POST_PRE_PAGE = 8
# MYSQL Setting
basedir = os.path.abspath(os.path.dirname(__file__))
MYSQL_HOST = 'localhost'
MYSQL_PORT = '3306'
MYSQL_USER = ''
MYSQL_PASS = ''
MYSQL_DB = ''
SQLALCHEMY_DATABASE_URI = 'mysql://%s:%s@%s:%s/%s' \
% (MYSQL_USER, MYSQL_PASS,
MYSQL_HOST, MYSQL_PORT, MYSQL_DB)
SQLALCHEMY_POOL_RECYCLE = 5
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
# simpleMDE
ARTICLE_EDITOR = 'simplemde'
#email server settings
MAIL_SERVER = 'smtp.vip.163.com'
MAIL_PORT = 25
MAIL_USER_TLS = False
MAIL_USER_SSL = False
MAIL_USERNAME = ''
MAIL_PASSWORD = ''
#administrator list
ADMINS = []