refactor: adds new entry point and ORM
This commit is contained in:
10
config.py
Normal file
10
config.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import os
|
||||
|
||||
basedir = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
|
||||
class Config:
|
||||
SECRET_KEY = os.environ.get('SECRET_KEY')
|
||||
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URI')\
|
||||
or 'sqlite:///' + os.path.join(basedir, 'instance\\adogapet.db')
|
||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||
Reference in New Issue
Block a user