On Sat, 2011-06-04 at 17:58 -0700, Jojo wrote:
> hi guys.
> I'm creating a pyramid webapp with sqlalchemy.
> I have added a new model file for sqlalchemy declarative classes
> (before there was only one file and all works fine), but when I run
> the application, paster does not create tables underneath second file
> classes.
> 
> In the first file (user.py) I have User, Group and other objects; in
> the second file I have added other classes like Role, ecc...
> 
> First time the application run, paster create tables only for these
> objects defined in user.py file, and ignore completely objects in the
> second file.
> 
> I have no idea where this behaviour is from, but I'm quite new. Some
> idea?

I'd suggest taking a look at
http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/sqla.html#importing-all-sqlalchemy-models

- C


> 
> 
> thank you
> 


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to