refactor: adds new entry point and ORM

This commit is contained in:
2024-09-29 17:36:30 -03:00
parent 999ebb0c27
commit 82f3477d1d
4 changed files with 28 additions and 11 deletions

10
config.py Normal file
View 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