On Sep 13, 11:03 am, Kirk Strauser <[email protected]> wrote:

> from sqlalchemy.ext.declarative import declarative_base
> Base = declarative_base()

> Pylons, though, wants those models to inherit from its own base class,
> like:
>
> from myapp.model.meta import Base

If you look at the model, /myapp/model/meta.py, you'll find:

from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()

which is the same declaration you're using.  You should be able to use
one or the other and utilize the same models for your standalone and
Pylons app.  I do the same with a few projects, though, in reverse.
Pylons models that I use directly in Python with the appropriate from
declarations.

-- 
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