-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.py
32 lines (24 loc) · 942 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
import settings
class Config(object):
SQLALCHEMY_DATABASE_URI = settings.DATABASE_URIS.get('Config')
SQLALCHEMY_TRACK_MODIFICATIONS = True
PYLTI_CONFIG = settings.PYLTI_CONFIG
class BaseConfig(object):
DEBUG = False
TESTING = False
SQLALCHEMY_DATABASE_URI = settings.DATABASE_URIS.get('BaseConfig')
SQLALCHEMY_TRACK_MODIFICATIONS = True
PYLTI_CONFIG = settings.PYLTI_CONFIG
class DevelopmentConfig(BaseConfig):
DEBUG = True
TESTING = True
SQLALCHEMY_DATABASE_URI = settings.DATABASE_URIS.get('DevelopmentConfig')
# make the warning shut up until Flask-SQLAlchemy v3 comes out
SQLALCHEMY_TRACK_MODIFICATIONS = True
PYLTI_CONFIG = settings.PYLTI_CONFIG
class TestingConfig(BaseConfig):
DEBUG = False
TESTING = True
SQLALCHEMY_DATABASE_URI = settings.DATABASE_URIS.get('TestingConfig')
SQLALCHEMY_TRACK_MODIFICATIONS = True
PYLTI_CONFIG = settings.PYLTI_CONFIG