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

help needed. where am I going wrong

Not exactly sure what the challenge is asking me to do

queries.py
from models import Challenge


all_challenges = Challenge.select()

class Challenge(Model):
    language = "Ruby"
    name = "Booleans"

1 Answer

Marcin Lubke
Marcin Lubke
13,253 Points

I also think that the question in this challenge isn't very clear... I found out that it's really asking you not to create new model, what you're trying to do, but new record of that model, so you have to use Challenge.create() method here.

oh ok. thanks. Got it now