-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
34 lines (27 loc) · 979 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
import os
class Config:
PG_HOST = os.environ.get('PG_HOST')
PG_USER = os.environ.get('PG_USER')
PG_PASSWORD = os.environ.get('PG_PASSWORD')
PG_DATABASE = os.environ.get('PG_DATABASE')
PG_PORT = os.environ.get('PG_PORT')
API_KEY = os.environ.get('API_KEY')
CACHE_TYPE = os.environ.get('CACHE_TYPE')
CACHE_REDIS_HOST = os.environ.get('CACHE_REDIS_HOST')
CACHE_REDIS_PORT = os.environ.get('CACHE_REDIS_PORT')
CACHE_REDIS_DB = os.environ.get('CACHE_REDIS_DB')
CACHE_REDIS_URL = os.environ.get('CACHE_REDIS_URL')
CACHE_DEFAULT_TIMEOUT = os.environ.get('CACHE_DEFAULT_TIMEOUT')
CACHE_REDIS_PASSWORD = os.environ.get('CACHE_REDIS_PASSWORD')
@staticmethod
def init_app(app):
pass
class DevelopmentConfig(Config):
Debug = True
class TestingConfig(Config):
TESTING = True
config = {
'development': DevelopmentConfig,
'testing': TestingConfig,
'default': DevelopmentConfig
}