forked from tzwlwm/crysadm-2
/
config.py
31 lines (26 loc) · 813 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
__author__ = 'powergx'
class RedisConfig():
def __init__(self, host, port, db, password=None):
self.host = host
self.port = port
self.db = db
self.password = password
class Config(object):
DEBUG = False
TESTING = False
DATABASE_URI = ''
ALLOWED_EXTENSIONS = {'txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'}
SESSION_TYPE = 'memcached'
SECRET_KEY = '7e30485a-dd01-11e4-8abd-10ddb199c373'
REDIS_CONF = RedisConfig(host='127.0.0.1', port=6379, db=0)
PASSWORD_PREFIX = "08b3db21-d120-11e4-9ttd-10ddb199c373"
ENCRYPT_PWD_URL = None
SERVER_IP = '127.0.0.1'
SERVER_PORT = 5000
class ProductionConfig(Config):
DEBUG = True
class DevelopmentConfig(Config):
DEBUG = True
class TestingConfig(Config):
DEBUG = True
TESTING = True