[Flask] How to supress SQLALCHEMY_TRACK_MODIFICATIONS warning
Tim Johnson
tim at akwebsoft.com
Tue Dec 8 20:32:48 EST 2015
* Tim Johnson <tim at akwebsoft.com> [151208 14:46]:
> 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.
I had a typo in the key name. I'm good now.
And now I know I can reach this list. :)
cheers
--
Tim
http://www.akwebsoft.com, http://www.tj49.com
More information about the Flask
mailing list