Implement custom config class; get SQLAlchemy database URI from config
This commit is contained in:
parent
31df889dcb
commit
04d434b4a3
7 changed files with 68 additions and 13 deletions
13
tofu_api/common/config/defaults.py
Normal file
13
tofu_api/common/config/defaults.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
__all__ = [
|
||||
'DefaultConfig',
|
||||
]
|
||||
|
||||
|
||||
class DefaultConfig:
|
||||
"""
|
||||
This class defines default values for the app configuration.
|
||||
"""
|
||||
|
||||
# Database configuration
|
||||
SQLALCHEMY_DATABASE_URI = None
|
||||
SQLALCHEMY_ECHO = False
|
||||
Loading…
Add table
Add a link
Reference in a new issue