Flask-sqlalchemy Not Creating My Tables
SQLAlchemy and for some reason when i run my create_db.py only the migration table is created. I tried it from python terminal with from modules import db,models then running db.cr
on changing
from __init__ import db
to
from modules import db
in models.py it worked. when running flask application from outside package one needs to import everything from the package itself and not the individual modules.
Post a Comment for "Flask-sqlalchemy Not Creating My Tables"