On 7/20/15 4:47 PM, Mário Idival wrote:

Pyramid I use for web development and would like to use with the alembic for migrations from my database.

I started a project using the scaffold `alchemy` where` Base` class that is used as `declarative_base` is within the` models.py` file. My problem is this: `--autogenerate` to work properly, I have to keep my models in the` models.py` file, if I separate them, it's like the alembic or sqlalchemy did not find them, or it does not. Someone had any problem with this?

ps: already I put my `` Base.metadata` in env.py`.

make sure that when env.py runs, it does an "import" that ensures that all modules are imported. you can put them in as many files as you want but they all must be imported, usually in a cascading module pattern, in order for the class definitions within them to be seen by your Python interpreter and thus be created as classes with table and mapping information.






--
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 [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to