[Flask] How to supress SQLALCHEMY_TRACK_MODIFICATIONS warning

Jeff Widman jeff at jeffwidman.com
Wed Dec 9 02:35:49 EST 2015


Welcome to the list Tim. Glad you figured it out.


ᐧ

On Tue, Dec 8, 2015 at 5:32 PM, Tim Johnson <tim at akwebsoft.com> wrote:

> * 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
> _______________________________________________
> Flask mailing list
> Flask at python.org
> https://mail.python.org/mailman/listinfo/flask
>



-- 

*Jeff Widman*
jeffwidman.com <http://www.jeffwidman.com/> | 740-WIDMAN-J (943-6265)
<><
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20151208/c199e745/attachment.html>


More information about the Flask mailing list