I see nothing wrong with this?
This looks like a glitch because I dont't any issues here. Am I missing something?
from peewee import * class Challenge(Model): name = CharField(max_length=100) language = CharField(max_length=100) steps = IntegerField(default=1) class Meta: database = db db = SqliteDatabase('challenges.db')
Christopher ShawPython Web Development Techdegree Graduate 49,831 Points
I am assuming from your comment that you worked it out. For interest sake of anyone searching for a similar problem,
db = SqliteDatabase('challenges.db') should be placed before class Challenge(Model):