Wow, Thank you Rabelo! Mário Idival Python Developer
*Twitter|Github|Skype *: *marioidival* *Facebook*: *mario.idival* *User Linux** : **#554446* 2015-07-20 18:12 GMT-03:00 Rebelo <[email protected]>: > > You need to import your models in env.py for autogenerate to work. > > If you have module (folder) models which conatins: > models > |- __init__.py > |- user.py > |- security.py > > in env.py you must do: > from models import user, security > > > > > > On Monday, July 20, 2015 at 10:48:06 PM UTC+2, Mário Idival wrote: >> >> autogenerate not work as expected. >> >> 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`. >> >> Em segunda-feira, 6 de julho de 2015 23:40:43 UTC-3, Mário Idival >> escreveu: >>> >>> Does anyone have any concrete example of how to work perfectly Pyramid+ >>> SqAlchemy Alembic? >>> >> -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/pylons-discuss. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
