python - Pylons 1.0 and SQLAlchemy 0.6 - How do I Model? -
I was reading with their Siteside tutorial and following the following, but there are some problems with making models Are there.
The models import used on the tutorial are:
Then they use it to create a table:
page_table = schema.Table ( 'Page', Meta.Metatadata,
However, when I try, I get:
AttributeError: any of the 'module' objects Specialty 'meta Data 'is not
I think Pylons has changed its way during the upgrade ... ...
So how can I do this? Can I link to an updated tutorial to create a model? And have to resolve the database connection / queries:
Pilon 1.0 declarative basis as the default for use model.
Example:
to sqlalchemy import column sqlalchemy.types Base class user (base) from Integer, Unicode, MYPROJECT.model.meta import: __tablename__ = 'user' id = column (integer, primary_key = true) user name = column (unicode (100))
You can see the updated reference in
Comments
Post a Comment