I'm following the excellent Flask tutorial by Giles Thomas. I'm near the end, creating the database tables. This is what happened.
My flask app.py app code says the following:
from flask.ext.sqlalchemy import SQLAlchemy
Per the instructions, from the bash console, I entered:
ipython3.4
Then, once ipython3.4 was running, I entered:
from flask_app import db
I subsequently got the following errors. Nor can I see the "comments" table in the mysql database.:
/usr/local/lib/python3.4/dist-packages/flask/exthook.py:71: ExtDeprecationWarning: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy instead.
.format(x=modname), ExtDeprecationWarning /usr/local/lib/python3.4/dist-packages/flask_sqlalchemy/__init__.py:800: UserWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True to suppress this 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 tried to follow the suggestions in the error message and changed my code to:
from flask_sqlalchemy import SQLAlchemy
To no avail. Any ideas of how to move forward? In some of my searches, it seems like they are saying that there may be a newer version of Flask?