[sqlalchemy] Trying to walk through tutorial, getting (OperationalError) no such table

2010-09-15 Thread MichelleB
This is driving me crazy since I can't even get through the tutorial : ( Thanks for any help! code, then error below. #! /usr/local/bin/python dbtestpy Walking through sqlalchemy tutorial Author: Michelle Brenner from sqlalchemy import Table, Column, Integer, Float,

Re: [sqlalchemy] Trying to walk through tutorial, getting (OperationalError) no such table

2010-09-15 Thread Roger Demetrescu
Try moving the metadata.create_all(engine) below the User class declaration. Like: snipped code class User(Base): __tablename__ = 'users' id = Column(Integer, primary_key=True) name = Column(String) fullname = Column(String) password = Column(String) def __init__(self, name,