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 trialJay Reyes
Python Web Development Techdegree Student 15,937 Pointsg.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!
1 Answer
Alejandra Estefanía Aguilera Ávila
6,865 PointsSame question...
Steven Parker, could you throw some light on this? (:
Steven Parker
231,268 PointsHi, 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.
Binyamin Friedman
14,615 PointsBinyamin Friedman
14,615 PointsI wish someone would answer this question. It seems like current_user works fine and is less confusing.