Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJavi Caballero
7,422 PointsNow itβs time to put those imports to work. Create a variable called engine and set it equal to create_engine. Use creat
It says the table's name should be set to movies... could someone tell me what's wrong?
# insert your code here
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
engine = create_engine('sqlite:///movies.db', echo=False)
Base = declarative_base()
class Movie(Base):
__table_name__ = 'movies'
1 Answer
Mark Sebeck
Treehouse Moderator 37,905 PointsHi Javi. It's a simple typo. Should be __ tablename __ instead of __ table_name __
The simple ones are sometimes the hardest to find. Keep at it!
Javi Caballero
7,422 PointsJavi Caballero
7,422 PointsGASP, man, look at me go... Thanks!