Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update config.py.tpl #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kdreally
Copy link

added SQLALCHEMY_TRACK_MODIFICATIONS = False to stop initial warning when running newly generated app.

  1. create a new app using flask fab create-app and set database SQLAlchemy,
  2. run the app using flask run

The first message to appear is:
[path-to-venv]\Lib\site-packages\flask_sqlalchemy_init_.py:872: 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.

Solution

To fix this, the line has been added to the config.tpl file.

added SQLALCHEMY_TRACK_MODIFICATIONS = False to stop initial warning when running newly generated app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant