Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python

Idan shami
Idan shami
13,251 Points

what can I do to complete my missing information in Flask?

Hi ! (:
Recently I started the Flask track, I followed all the steps: python basics - python collections - introduction to HTML and CSS and HTTP basics. but then..... the time to learn flask basics had come, and I was thrilled, I watched the videos and understood the some of it, now I am in "Character Builder", but unfortunately it was overwhelming and I didn't even finish the first video... Kenneth started to explain things like they were obvious, but not for me... url_for() redirect and PDB, what is that??? so I am hoping for some tips.... as it looks like this course isn't so simple, and Kenneth is explaining anything like it is clear... from anyone who learned already Flask, what can I do? which websites will give me the lacking information that I need right now to understand what is Kenneth talking about? I don't want to leave this course... if I started to learn python why wouldn't I do with it something that is fun and useful.

Thanks ! have a good day! (:

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 67,986 Points

Learning Flask can be overwhelming. There are many pieces that need to fit together to make the whole. The difficulty in teaching Flask is trying to demonstrating functionality of the whole before all of the pieces are understood. Following the Flask lesson may be as complicated as all the previous Python lessons combined due to all the news pieces.

At the beginning, many of these pieces will need to be simply accepted as a "thing that works" with the understanding that theses pieces will make more sense as the course goes on.

So while there are other websites and lessons on learning Flask, it's a bit like asking to learn Flask before you learn Flask.

I suggest continuing on with the Treehouse course, while making a list of the unclear concepts that need more explanation. If the unclear concept doesn't become clear later on or at the end of the course, you'll have a great list of topics to research online or to ask about here in the forum. If you feel a specific concept needs more explaining immediately then a quick web search works well.

The main Flask documentation site is http://flask.pocoo.org/. A quick way to find specific help is to use the Google site: prefix. For example, to search for url_for I would use:

site:flask.pocoo.org url_for

Which leads to the link http://flask.pocoo.org/docs/0.12/api/

Where it says:

flask.url_for(endpoint, **values) Generates a URL to the given endpoint with the method provided

Of course, these leads to the question: what's an "endpoint". It's also explained later.

Note that site: can be used to search on Treehouse as well!

site:teamtreehouse.com url_for

If this isn't enough there is also the Flask tutorial by Miguel Grinberg, who has written many excellent books on Flask:

https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world

And definitely post back if you need more detailed help on anything. Good luck!!!

Idan shami
Idan shami
13,251 Points

Wow! Thanks!! But one more question, do you think that I need to learn before flask, in more details: HTML CSS & JS?

Have a good day, and once again thanks for all the tips (:

Chris Freeman
Chris Freeman
Treehouse Moderator 67,986 Points

Only a basic knowledge of HTML and CSS is needed. I don't think JS is needed for Flask course other than there is some use of JSON (JavaScript Object Notation) when sending data to and from a webpage using cookies.

Idan shami
Idan shami
13,251 Points

yeah... but I mean maybe I will learn some of the basics of all of them and make a simple website and then use it with flask...