Some work with FastAPI and SQLAlchemy, including automated alembic migrations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

9 lines
262 B

import os
class Config():
BASEDIR = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URL") or "sqlite:///{}".format(
os.path.join(BASEDIR, "test.db")
)
SQLALCHEMY_TRACK_MODIFICATIONS = False