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 Build a Social Network with Flask Making Strong Users The User Model

unresolved refference 'datetime'

Hey everyone, when i'm doing the joined_at i'm getting an unresolved reference 'datetime' why?

2 Answers

Steven Parker
Steven Parker
229,578 Points

Did you import datetime ?

Otherwise, it would help to see your code, or better yet, make a snapshot of the workspace and provide the link to it.

it's probably because i'm doing this locally but it worked :)

Kyle Salisbury
seal-mask
.a{fill-rule:evenodd;}techdegree
Kyle Salisbury
Full Stack JavaScript Techdegree Student 16,363 Points

I was trying the same thing on PyCharm and it took me a second to figure it out. You have to first install datetime. Then you must import datetime from datetime. That was my problem at least.