s3rius / FastAPI-template

Feature rich robust FastAPI template.
MIT License
1.79k stars 161 forks source link

Where to set sqlalchemy.url for alembic? #181

Closed GGSMK closed 11 months ago

GGSMK commented 11 months ago

I´m using migrations with sqlite3 and sqlalchemy. When i try to add sqlalchemy.url in alembic.ini it doesn't seem to do anything. Where is the appropriate place to set it?

s3rius commented 11 months ago

Hi and thanks for asking. This project configured to use variables from you env. You can place it in .env file, or run project with environment.

s3rius commented 11 months ago

Hi and thanks for asking. This project configured to use variables from you env. You can place it in .env file, or run project with environment. Names of variables can be found in settings.py.