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 How to Win Friends Follow and Unfollow Buttons

Diego Salas Polar
Diego Salas Polar
21,431 Points

My work space didn't came with the static folder. Could someone share me the static folder.

2 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Hey Diego Salas, like Josh Roberts said, there are downloads attached to every video. Below the video, there's a tab that says "Downloads". You can click this link to see all of the available downloads for the video, which usually includes project files, video transcripts, and videos themselves.

For this course, the downloads are here.

Diego Salas Polar
Diego Salas Polar
21,431 Points

Thanks Kenneth Love ! I got all the files from the static folder, and it looks the same in your videos. But, it throws a attribute error and I try to fix it for the past 10 or 15 minutes. Do you think you can help me? Here is the link to my codes. https://w.trhou.se/sz8ljku53q

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

Why do you tell me what AttributeError it's throwing?

Diego Salas Polar
Diego Salas Polar
21,431 Points

It's throwing 'AnonymousUserMixin' object has no attribute 'get_stream', and I was looking in your videos to check if my codes matches your codes. I couldn't find what is missing in my code, so I ask for help.

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

I'm having some issues with Workspaces at the moment so I can't easily debug this. Can you provide me with the entire error message and what steps you're doing when the error occurs?

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

OK, got the Workspace up. As mentioned in the video and in the Teacher's Notes below it, the version of Flask-Login that's used in the video and the version you get in Workspaces have diverged and now you need to use is_authenticated() instead of just is_authenticated. I think this only matters in the layout.html template but just be careful with it.

Diego Salas Polar
Diego Salas Polar
21,431 Points

Kenneth Love when you log in and click "Following" it throws an error. At first, it throws that AttributeError I was talking about, but after you tell me to put is_authenticated() instead of is_authenticated, it throws this jinja2.exceptions.UndefinedError: 'method object' has no attribute 'count'. I have no idea why jinja2 change the error but that how the AttributeError occurred.

Thank you for helping me Kenneth.

Kenneth Love put a zip file in downloads section that has all the files. If you "right-click" on a folder in your workspace or click on "file", there is an option to upload a file. You cannot upload a folder but, if you create the folder in your workspace first, you should be able upload all the files in that folder by selecting them all.

Diego Salas Polar
Diego Salas Polar
21,431 Points

Where did Kenneth Love put the zip file?