On Dec 29, 2013, at 2:25 PM, Michael <taomaili...@gmail.com> wrote: > I have a models dir which contains a new .py which contains: > > > Alembic doesn't appear to detect the new Logging table despite it importing > the bar.models __init__.py for Base and the env.py importing the same file > and containing `target_metadata = Base.metadata`
importing bar/models/__init__.py doesn’t imply that the auth.py or applog.py files will be accessed by the Python interpreter; those would have to be imported explicitly. i typically make the __init__.py in a package look like this: from .base import Base, Session from .auth import AuthThing from .applog import AppLog then inside of “base.py” is where you’d have Base, Session, all that stuff. > > Any suggestions? > > Michael > > 47177ffef18e_initializedb.py -- http://pastebin.com/iHdSc4Wg > development.ini -- http://pastebin.com/2pZ39KrE > env.py -- http://pastebin.com/FLzqMJRv > bar.models.__init__.py -- http://pastebin.com/1aHyb6zr > auth.py -- http://pastebin.com/4fQPVXpk > applog.py -- http://pastebin.com/DeKPy5RQ > > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy-alembic" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sqlalchemy-alembic+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out.
signature.asc
Description: Message signed with OpenPGP using GPGMail