Explicitly disables SQLALCHEMY_TRACK_MODIFICATIONS

That noisy warning was everywhere in our test/CI logs before that commit:

> ./home/travis/build/spiral-project/ihatemoney/.tox/py27/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:839: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True or False to suppress this warning.
>
>  'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhe
This commit is contained in:
Jocelyn Delalande 2017-03-29 11:33:42 +02:00
parent bf2c11f8a9
commit 7380b6f9f7

View file

@ -1,6 +1,10 @@
DEBUG = False
SQLALCHEMY_DATABASE_URI = 'sqlite:///budget.db'
SQLACHEMY_ECHO = DEBUG
# Will likely become the default value in flask-sqlalchemy >=3 ; could be removed
# then:
SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = "tralala"
MAIL_DEFAULT_SENDER = ("Budget manager", "budget@notmyidea.org")