Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Introduction1:13 with Kenneth Love
Flask is a great Python microframework that can make building web sites and applications much faster. It offers some handy and reliable shortcuts and tools that'll make your web development life a lot easier.
If you want to install Flask locally, I suggest using a virtualenv. You'll then want to do
pip install flask. If you need more information on
pip and local Python, check out the following two workshops: Setting Up A Local Python Environment in Windows or Setting Up a Local Python Environment in Mac OS X.
Hi, I'm Kenneth.
I know a lot of you are really interested in doing web development with Python.
It just so happens that's where most of my Python experience is,
so this should be a match made in heaven.
Before we jump into bigger frameworks like Django or
Pyramid, we should get comfortable with their smaller cousin, Flask.
Flask is a great little framework for building simpler web apps and
prototypes in Python.
It actually started out as an April Fool's joke by Armin Ronacher back in 2010.
People were so in love with the tools that Armin's code gave them that he had to
build and release a real framework.
I doubt he'll ever do another April Fool's joke.
Just because it started as a joke doesn't mean it's not a serious framework.
Also, I keep using that word, framework.
A framework is a collection of code that makes building something easier.
In this case, Flask is a framework that makes building web apps simpler.
Flask is solid and very capable, and has a very active and
vibrant community built around it.
Using Flask, some plugins, and
of course, standard Python, you should be able to build anything you want.
If you're following along locally, you'll need to install Flask with pip.
Flask is preinstalled on Workspaces, so I'll be using that for the entire course.
You need to sign up for Treehouse in order to download course files.Sign up