· 9 years ago · Oct 02, 2016, 09:52 PM
1import os
2basedir = os.path.abspath(os.path.dirname(__file__))
3
4
5class Config(object):
6 DEBUG = False
7 TESTING = False
8 CSRF_ENABLED = True
9 APP_SETTINGS = os.environ['APP_SETTINGS']
10 SQLALCHEMY_DATABASE_URI = "mysql://root:ubuntu@localhost/fr"
11 SQLALCHEMY_TRACK_MODIFICATIONS = True
12 SECRET_KEY = '1837bc2c546d46c705204cf9f857b90b1dbffd2a7988451670119945ba39a10b'
13 SESSION_SQLALCHEMY_TABLE = 'sessions'
14 SESSION_TYPE = 'sqlalchemy'
15
16class ProductionConfig(Config):
17 DEBUG = False
18
19
20class StagingConfig(Config):
21 DEVELOPMENT = True
22 DEBUG = True
23
24
25class DevelopmentConfig(Config):
26 DEVELOPMENT = True
27 DEBUG = True
28
29class TestingConfig(Config):
30 TESTING = True