[Flask] How to supress SQLALCHEMY_TRACK_MODIFICATIONS warning
Tim Johnson
tim at akwebsoft.com
Tue Dec 8 18:40:48 EST 2015
I'm getting the following warning :
"""
warnings.warn('SQLALCHEMY_TRACK_MODIFICATIONS adds significant
overhead and will be disabled by default in the future. Set it to
True to suppress this warning.')
"""
I find much chatter about this issue, but no example of
specifically how to disable the warning.
I have tried the following:
## Flask instantiation
app = Flask(__name__)
## ... other config settings
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
... But the warning persists.
thanks in advance
--
Tim
http://www.akwebsoft.com, http://www.tj49.com
More information about the Flask
mailing list