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 trialRon Tovbin
Python Web Development Techdegree Student 6,268 Pointssomething wrong here. Not sure what I'm doing wrong.
Thank you kindly.
from peewee import *
from flask_bcrypt import check_password_hash
from flask_bcrypt import generate_password_hash
class User(Model):
email = CharField(unique=True)
password = CharField()
join_date = DateField(default=datetime.datetime.now)
2 Answers
Jennifer Nordell
Treehouse TeacherHi there! I feel like you're doing pretty well, but there's a few things going on here:
- You do not need the bcrypt imports
- You do need to
import datetime
- Your password field should have a max length of 100. It currently is not specified
-
join_date
should be aDateTimeField
instead of aDateField
Hope this helps!
Ron Tovbin
Python Web Development Techdegree Student 6,268 PointsNailed it! Thank you Jennifer !!