diff options
| author | Jocelyn Delalande <jocelyn@crapouillou.net> | 2017-03-29 11:33:42 +0200 |
|---|---|---|
| committer | Jocelyn Delalande <jocelyn@crapouillou.net> | 2017-03-29 12:11:24 +0200 |
| commit | 7380b6f9f71c1ab3da905d8795a50f0aeb418950 (patch) | |
| tree | 901d4d10e810abb0928ce8ae06d3c74f65d2a578 | |
| parent | bf2c11f8a9f14b2553892df92b4d6e44fc21d2a2 (diff) | |
| download | ihatemoney-mirror-7380b6f9f71c1ab3da905d8795a50f0aeb418950.zip ihatemoney-mirror-7380b6f9f71c1ab3da905d8795a50f0aeb418950.tar.gz ihatemoney-mirror-7380b6f9f71c1ab3da905d8795a50f0aeb418950.tar.bz2 | |
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
| -rw-r--r-- | budget/default_settings.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/budget/default_settings.py b/budget/default_settings.py index d5a9a9b..5ee6de8 100644 --- a/budget/default_settings.py +++ b/budget/default_settings.py @@ -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") |
