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 Create Table

Python Create Table Challenge "Task 1 no longer passing"

There isn't that much to this. Im tired, so maybe Im missing something small, but I've gone over and over this and I don't see why its not passing. I've started over from the beginning, no joy. I tried just putting in the class statement and I get an error that it has no name attribute, but as soon as I add the name field it fails with Task 1 no longer passing. I don't see anything else to change.

tables.py
from peewee import *

db = SqliteDatabase("challenges.db")

class Challenge(Model):
    name = Charfield(max_length=100)
    language = Charfield(max_length=100)

1 Answer

Ryan S
Ryan S
27,276 Points

Hey Jeremy,

You are right, it is something very small. The "F" in CharField needs to be capitalized. Other than that it is correct.

Good luck.