yuanhung yeh
2020-10-27 5b98e9857d5081c30fcef0206c38f384dc542514
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
import os
basedir = os.path.abspath(os.path.dirname(__file__))
 
class Config(object):
    DEBUG = False
    TESTING = False
    CSRF_ENABLED = True
    SECRET_KEY = 'this-really-needs-to-be-changed'
#    dbConf={"host": os.environ["PG_HOST"],
#            "port": os.environ["PG_PORT"],
#            "database": os.environ["PG_DATABASE"],
#            "user": os.environ["PG_USER"],
#            "password": os.environ["PG_PASS"] 
#    }
 
 
class ProductionConfig(Config):
    DEBUG = False
 
 
class StagingConfig(Config):
    DEVELOPMENT = True
    DEBUG = True
 
class DevelopmentConfig(Config):
    DEVELOPMENT = True
    DEBUG = True
 
 
class TestingConfig(Config):
    TESTING = True