#flasksqlalchemy — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #flasksqlalchemy, aggregated by home.social.
-
I'm sure there's a better way to do a lot of the stuff my Flask app template does, but at least it works with Bootstrap 5 now.
I'd like to add some kind of Keycloak auth backend (possibly OIDC or SAML) but that's a job for later.Comments and suggestions for improvement welcome.
-
I'm sure there's a better way to do a lot of the stuff my Flask app template does, but at least it works with Bootstrap 5 now.
I'd like to add some kind of Keycloak auth backend (possibly OIDC or SAML) but that's a job for later.Comments and suggestions for improvement welcome.
-
Worked like a charm, except it's called DefaultMeta now.
from flask_sqlalchemy import DefaultMeta, SQLAlchemy db = SQLAlchemy() Model: DefaultMeta = db.ModelAnd then import this Model and replace db.Model with Model everywhere.
With this mypy keeps working as you upgrade from flask-sqlalchemy 2 to flask-sqlalchemy 3. I haven't verified that the typechecking still detects type violations, only that it passes on our existing valid code.
-
Worked like a charm, except it's called DefaultMeta now.
from flask_sqlalchemy import DefaultMeta, SQLAlchemy db = SQLAlchemy() Model: DefaultMeta = db.ModelAnd then import this Model and replace db.Model with Model everywhere.
With this mypy keeps working as you upgrade from flask-sqlalchemy 2 to flask-sqlalchemy 3. I haven't verified that the typechecking still detects type violations, only that it passes on our existing valid code.
-
Flask-SQLAlchemy 3.0.3 released https://pypi.org/project/Flask-SQLAlchemy/3.0.3/ with SLSA provenance for the build.
It adds error messages around some common incorrect uses of the extension, which started failing more obviously (but mysteriously) with the 3.0 release.
Now that I've got the publish workflow created, it's really easy to copy it to each project, and the automation is really nice.
-
Flask-SQLAlchemy 3.0.3 released https://pypi.org/project/Flask-SQLAlchemy/3.0.3/ with SLSA provenance for the build.
It adds error messages around some common incorrect uses of the extension, which started failing more obviously (but mysteriously) with the 3.0 release.
Now that I've got the publish workflow created, it's really easy to copy it to each project, and the automation is really nice.