I've been reading http://pylonsbook.com/en/1.1/starting-the-simplesite-tutorial.html and following along with their SimpleSite tutorial but am having some issues with creating the Model.
The Model imports they use on the tutorial are:
"""The application's model objects"""
import sqlalchemy as sa
from sqlalchemy import orm
from simplesite.model import meta
# Add these two imports:
import datetime
from sqlalchemy import schema, types
They then use this to create a table:
page_table = schema.Table('page', meta.metadata,
Though, when I try that, I get:
AttributeError: 'module' object has no attribute 'metadata'
I'm guessing Pylons changed their ways during the version upgrade...
So how do I do this? Can someone link me to an updated tutorial on making a Model and handling database connections/queries? :/