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

Friendly update and debugging notes (Build a Social Network with Flask)

While going thru this course, I encountered a few updates, maybe futur students will appreciate these.

in the file forms.py

# flask_wtf Form is being renamed FlaskForm...
from flask_wtf import FlaskForm

Remember, this will apply to all of the form classes we create...

class RegisterForm(FlaskForm):
class LoginForm(FlaskForm):
class PostForm(FlaskForm):

in the file models.py

# ForeignKeyField has been updated...
user = ForeignKeyField(model=User, backref='posts')

That's it for now. Hopefully I can edit this post if I find more. Cheers!