Quantcast
Channel: How do I know if I can disable SQLALCHEMY_TRACK_MODIFICATIONS? - Stack Overflow
Browsing latest articles
Browse All 7 View Live

Answer by Wanjiku for How do I know if I can disable...

Solved this issue by copy-pasting this onto your shell:app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False

View Article



Answer by Grey Li for How do I know if I can disable...

Answer from 2020If you have questions like this, then you definitely don't need this feature.By the way, the top answer is outdated. From version 2.1 (released on Oct 23, 2015), this config...

View Article

Answer by John Nettles for How do I know if I can disable...

Be sure to set your app config properties BEFORE you pass the app to SqlAlchemy. Below is an example of setting up a connection to sql server.import osfrom flask import Flaskfrom flask_sqlalchemy...

View Article

Answer by jasonrhaas for How do I know if I can disable...

The above answers look good. However, I wanted to point out this line in the Flask-SQLAlchemy documentation because I was still getting these warnings after setting SQLALCHEMY_TRACK_MODIFICATIONS =...

View Article

Answer by Pitto for How do I know if I can disable...

Jeff Widman's detailed explanation is simply perfect.Since I had some copy'n'paste fights before getting this right I'd like to make it easier for the next one that will be in my shoes.The needed...

View Article


Answer by Jeff Widman for How do I know if I can disable...

Most likely your application doesn't use the Flask-SQLAlchemy event system, so you're probably safe to turn off. You'll need to audit the code to verify--you're looking for anything that hooks into...

View Article

How do I know if I can disable SQLALCHEMY_TRACK_MODIFICATIONS?

Every time I run my app that uses Flask-SQLAlchemy I get the following warning that the SQLALCHEMY_TRACK_MODIFICATIONS option will be...

View Article
Browsing latest articles
Browse All 7 View Live




Latest Images