Welcome to the Treehouse Community
Looking to learn something new?
stage1 meet PEEWEE
Now, create a variable named all_challenges. It should select all of the available challenges from the database
from models import Challenge all_challenges = challenges.select
There are a couple of issues with your code that you need to solve.
First, on line 2 you reference a variable
challenges that doesn't exist. Look at what you imported on line 1 and update line 2 accordingly.
Secondly, if you look at the Teacher's Notes section on http://teamtreehouse.com/library/using-databases-in-python/meet-peewee/queries-are-your-friend you will see the method call you need to use on the class you imported and how to call it.
all_challenges = Challenge.select()