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 trial

Python SQLAlchemy Basics Introduction to SQLAlchemy Creating a Movie Model

Zachary wathen
seal-mask
.a{fill-rule:evenodd;}techdegree
Zachary wathen
Python Development Techdegree Student 7,152 Points

its stating that there is something wrong with the engine variable... I cant find it

it's asking me if I have all the needed details in the engine variable, and I do. not sure what is wrong.

models.py
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):
    __tablename__ = 'movies'

1 Answer

Have you tried removing the spaces around the = in echo = False?

Zachary wathen
seal-mask
.a{fill-rule:evenodd;}techdegree
Zachary wathen
Python Development Techdegree Student 7,152 Points

wow . that was it haha! stared at that thing for like 20 minutes trying to figure it out , the coding challenges can be so buggy at times. thanks for the help!