Description/documentation of SQLALCHEMY_ENGINES config param? #36
Unanswered
smontanaro
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
It's described in the docs https://flask-sqlalchemy-lite.readthedocs.io/en/stable/engine/#flask_sqlalchemy_lite.SQLALCHEMY_ENGINES You're looking at the short description about the project on PyPI, which is not intended as documentation. I don't see anything that says you should use TOML or JSON. Flask's config is really flexible, and its docs go into detail about the many ways to manage config, including defaults, production overrides, etc. https://flask.palletsprojects.com/en/stable/config/#configuring-from-python-files |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to flask-sqlalchemy-lite (and the non-lite variant). I have an existing Flask app which uses SQLite directly and want to convert to SQLAlchemy to ease transition to a more performant database. Looking here: https://pypi.org/project/Flask-SQLAlchemy-Lite/
I see mention of a
SQLALCHEMY_ENGINESconfiguration variable, but it gives a pretty trivial example. I have yet to find much, if anything, about that variable in the documentation. If nothing else, it would be handy to have a note on the above example page pointing to where that variable is described.(On a related note, I'm not too much of a JSON or TOML person. I gave up trying to define a useful configuration of that variable in TOML – didn't even try JSON – and resorted to
from_pyfile.)Beta Was this translation helpful? Give feedback.
All reactions