-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathconfig.py
More file actions
37 lines (27 loc) · 975 Bytes
/
config.py
File metadata and controls
37 lines (27 loc) · 975 Bytes
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
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.getenv('SECRET_KEY') or 'hardtoguessstring'
@staticmethod
def init_app(app):
pass
class DevelopmentConfig(Config):
DEBUG = True
NOTIFICATION_URL = os.getenv('DEV_NOTIFICATION_URL')
CONVERGE_MRM_URL = os.getenv('DEV_CONVERGE_MRM_URL')
REDIS_DATABASE_URI = os.getenv('DEV_REDIS_URL')
class ProductionConfig(Config):
NOTIFICATION_URL = os.getenv('NOTIFICATION_URL')
CONVERGE_MRM_URL = os.getenv('CONVERGE_MRM_URL')
REDIS_DATABASE_URI = os.getenv('PROD_REDIS_URL')
class TestingConfig(Config):
DEBUG = True
NOTIFICATION_URL = os.getenv('DEV_NOTIFICATION_URL')
CONVERGE_MRM_URL = os.getenv('DEV_CONVERGE_MRM_URL')
REDIS_DATABASE_URI = os.getenv('TEST_REDIS_URL')
config = {
'development': DevelopmentConfig,
'production': ProductionConfig,
'default': DevelopmentConfig,
'testing': TestingConfig
}