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 Using Databases in Python Meet Peewee First Queries

Import Challenge?

I'm completely stumped by what this Code Challenge is asking for step one. Any hints?

queries.py
class Challenge(Model):

what the question asking you to do

1 Answer

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

Hi, Ryan Carson

from models import Challenge

Import the Challenge model from models.py.

I think there's a typo here, it supposed be module instead of model

For a reference check out The Challenge from Python Basics.

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

No, "model" isn't a typo. I want you to know that it's a model...but I guess that's handled by it being from models.py, huh? Maybe I'll change "model" to "class".