-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
46 lines (34 loc) · 964 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
43
44
45
46
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
DEBUG = False
TESTING = False
CSRF_ENABLED = True
SECRET_KEY = os.environ['SECRET_KEY']
MONGODB_SETTINGS = {
'db': 'plakspotr',
# 'host': os.environ['MONGODB_URL']
}
#REDIS_URL = os.environ['REDIS_URL']
#REDIS_CHAN = 'chat'
#CELERY_BROKER_URL = os.environ['CELERY_BROKER']
#CELERY_RESULT_BACKEND = os.environ['CELERY_BROKER']
GOOGLE_ID = os.environ['GOOGLE_ID']
GOOGLE_SECRET = os.environ['GOOGLE_SECRET']
class ProductionConfig(Config):
DEBUG = False
class StagingConfig(Config):
DEVELOPMENT = True
DEBUG = True
class DevelopmentConfig(Config):
DEVELOPMENT = True
DEBUG = True
class TestingConfig(Config):
TESTING = True
cfgs = {
'default': Config,
'product': ProductionConfig,
'staging': StagingConfig,
'testing': TestingConfig,
'devel': DevelopmentConfig
}