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 Broadcasting Stream Views

Jay Reyes
seal-mask
.a{fill-rule:evenodd;}techdegree
Jay Reyes
Python Web Development Techdegree Student 15,937 Points

g.user and current_user

I'm not sure why g.user is used inside the post view and current_user is in stream view.

I figured we are supposed to use g.user inside of stream as well!

Binyamin Friedman
Binyamin Friedman
14,615 Points

I wish someone would answer this question. It seems like current_user works fine and is less confusing.

1 Answer

Same question...

Steven Parker, could you throw some light on this? (:

Steven Parker
Steven Parker
231,268 Points

:bookmark: Hi, I got alerted by your tag, but it's been a long time since I looked at this course and I've never used Flask in real life.

You might try posting a fresh question since this one is nearly a year old and potential helpers might not look that far back on the forum.