Flask Web Development
Developing Web Applications with Python
Publisher: O'Reilly Media
Final Release Date: April 2014
Pages: 258

Take full creative control of your web applications with Flask, the Python-based microframework. With this hands-on book, you’ll learn Flask from the ground up by developing a complete social blogging application step-by-step. Author Miguel Grinberg walks you through the framework’s core functionality, and shows you how to extend applications with advanced web techniques such as database migration and web service communication.

Rather than impose development guidelines as other frameworks do, Flask leaves the business of extensions up to you. If you have Python experience, this book shows you how to take advantage of that creative freedom.

  • Learn Flask’s basic application structure and write an example app
  • Work with must-have components—templates, databases, web forms, and email support
  • Use packages and modules to structure a large application that scales
  • Implement user authentication, roles, and profiles
  • Build a blogging feature by reusing templates, paginating item lists, and working with rich text
  • Use a Flask-based RESTful API to expose app functionality to smartphones, tablets, and other third-party clients
  • Learn how to run unit tests and enhance application performance
  • Explore options for deploying your web app to a production server
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyFlask Web Development
 
4.8

(based on 12 reviews)

Ratings Distribution

  • 5 Stars

     

    (9)

  • 4 Stars

     

    (3)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Easy to understand (10)
  • Helpful examples (10)
  • Well-written (10)
  • Accurate (7)
  • Concise (6)

Cons

    Best Uses

    • Intermediate (7)
    • Novice (7)
    • Student (5)
      • Reviewer Profile:
      • Developer (7)

    Reviewed by 12 customers

    Sort by

    Displaying reviews 1-10

    Back to top

    Previous | Next »

     
    4.0

    Well Written

    By LLLLL

    from Seattle

    About Me Maker

    Verified Buyer

    Pros

    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Intermediate

      Comments about oreilly Flask Web Development:

      One of the clearest books on any computing topic I have read. Useful example is used. And the example goes well beyond cookbook because the text addresses the broader technique being shown.

      Flask itself is good for very simple things but when websites gain realistic scale the plugins become so complicated that much or all of the initial simplicity is gone.

      The author really tries to show how the complexity can be managed. The writing is clear and good. The tool itself has shortcomings.

       
      4.0

      Does the job

      By Vasili

      from Sydney

      About Me Sys Admin

      Verified Buyer

      Pros

      • Easy to understand
      • Helpful examples

      Cons

      • Not comprehensive enough

      Best Uses

      • Novice

      Comments about oreilly Flask Web Development:

      Good book for people uninitiated with flask. I've made a nice website out of it, with custom authentication and other features.

      I think that the book could have been a bit longer, with other potential options covered, for example, Redis as an alternative to SQLite could have been shown in just a couple of extra pages.

      Also, a lot of Flask extensions were difficult to get a hold of... some package names differed, and some seemed to be incompatible.

      Overall though, I would say it was a good purchase and I got a lot out of it.

      (1 of 1 customers found this review helpful)

       
      5.0

      Great Book

      By Thor

      from Baltimore, MD

      About Me Developer

      Verified Buyer

      Pros

      • Accurate
      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Intermediate

        Comments about oreilly Flask Web Development:

        Clear and engaging writing style, good organization of material, well thought-out examples, covered most of the things that I will need to build my own websites. I would highly recommend this book, it was well worth the time and money.

         
        5.0

        Very Nice

        By Zaal

        from Philadelphia, PA

        Verified Reviewer

        Pros

        • Easy to understand
        • Helpful examples
        • Well-written

        Cons

          Best Uses

          • Intermediate
          • Novice

          Comments about oreilly Flask Web Development:

          I've read the first and last parts of the book so far and it's been very informative. I knew some web programming concepts before and this book is helping to consolidate those and start building real-world apps.

           
          4.0

          Good beginners book

          By Eric

          from San Francisco, CA

          About Me Developer

          Verified Buyer

          Pros

          • Easy to understand
          • Well-written

          Cons

          • Not comprehensive enough
          • Too basic

          Best Uses

          • Novice

          Comments about oreilly Flask Web Development:

          Good reading for beginners to Flask. Wish it had gone more in-depth, perhaps with more chapters diving further in SQLAlchemy or extensions like Flask-Uploads. Still, well written and worth it.

          (1 of 1 customers found this review helpful)

           
          5.0

          excellent

          By K

          from SF, CA

          Verified Buyer

          Comments about oreilly Flask Web Development:

          excellent, easy to read, great coverage of topics. I'd consider myself a python (systems) expert, but previously didn't know (that) about building a web stack. This book, combined with the excellent (!!) source examples and follow-along git repo, jumpstarted my learning by a mile. A+

          (1 of 1 customers found this review helpful)

           
          5.0

          READ THIS BOOK!

          By David in Austin

          from Austin, Tx

          About Me Developer, Maker

          Verified Buyer

          Pros

          • Accurate
          • Concise
          • Easy to understand
          • Helpful examples
          • Well-written

          Cons

            Best Uses

              Comments about oreilly Flask Web Development:

              Allow me to give one complaint about this book before I give the rest of my review. The only hard part about this book to understand is the deployment portion because I was not familiar with deploying a python application via Apache. I was using a DigitalOcean account and deploying my Flask application was my biggest headache. NOW FOR THE REST!

              I needed to learn Flask for a coding challenge I was given and I first found Miguel's blog post about it. After using that post, almost exclusively to develop my application, I noticed he was writing this book. I bought the book and read the first few chapters and it contained all the information from the blog post and then went even further in depth. I would recommend this book to anyone investigating Flask because it takes an incredible framework and explains it amazingly.

              Miguel doesn't assume anything in this book so he doesn't talk over your head with extended use of acronyms but he also doesn't talk down to you by making anything seem "obvious". I recommended this book to friends deciding on Python/Flask vs Ruby/Sinatra because this book coupled with Flask makes web development as much fun and painless as doing Ruby on Rails.

              (5 of 5 customers found this review helpful)

               
              5.0

              Excellent tutorial

              By gev

              from Velvary, Czech Republic

              Verified Buyer

              Pros

              • Accurate
              • Concise
              • Easy to understand
              • Helpful examples
              • Well-written

              Cons

                Best Uses

                • Novice
                • Student

                Comments about oreilly Flask Web Development:

                The book is a great introduction to development with Flask, using a tutorial approach going from the basics to building a simple yet full-blown web application. The book is very easy to follow, it's written in a way easy to understand even for a non-native speaker like me.

                I would definitely consider other books by Miguel Grinberg, if he writes any in the future. I like his way of explaining things and level of details provided.

                (1 of 1 customers found this review helpful)

                 
                5.0

                Fantastic book

                By Artur Z.

                from Poland

                About Me Developer, Educator

                Verified Reviewer

                Pros

                • Accurate
                • Easy to understand
                • Helpful examples
                • Well-written

                Cons

                  Best Uses

                  • Intermediate
                  • Novice
                  • Student

                  Comments about oreilly Flask Web Development:

                  I learned many new things from this book by building professional application starting from scratch. Educational and practical approach of an author gave me a lot of satisfaction.

                  (4 of 4 customers found this review helpful)

                   
                  5.0

                  Good enough you should read it twice

                  By Brian Wisti

                  from Seattle, WA

                  About Me Developer, Web Geek

                  Verified Reviewer

                  Pros

                  • Accurate
                  • Concise
                  • Easy to understand
                  • Helpful examples
                  • Well-written

                  Cons

                  • Library Version Issues

                  Best Uses

                  • Intermediate
                  • Novice
                  • Student

                  Comments about oreilly Flask Web Development:

                  tl;dr? Get the book. Check out the repo. Read once for the idea, again for detailed understanding. You'll learn about Flask and general Web development.

                  First off: I read this book as it grew through O'Reilly's Early Release program and exchanged many emails with the author. He was helpful, providing suggestions when I was a bit thick and correcting errors in the book when they were present.

                  The book itself is a good introduction to the Python Flask Web development framework. It covers using the framework itself, as well as *many* plugins that make it easier to create complex Web applications. The sample project is a straightforward blog platform complete with users, posts, followers, and comments. It uses Twitter Bootstrap for styling, which gives you something nice to look at. This project is available on Github, and has been carefully organized with branches to reflect the development steps as they are described in the book.

                  "Flask Web Development" is not just a source code dump, though. Grinberg carefully explains many core concepts of Web development, from security to SQL schemas. These core concepts make the book useful as more than just a weekend fling with a new framework. It is an introduction to building Web applications that will be used in the real world.

                  My advice is to read the book twice. The first time, just follow along with the Github steps. Copy the repository. Skim a few pages. Where the book instructs you to checkout a branch, do so and look at what's changed. Follow along with the database and email setup. Run the application at each stage. This is the weekend read of the book.

                  The second time through, set the repository aside and enter the code yourself. You will get a deeper understanding of what is going on, but will also already know what to expect - and maybe you can make a few changes.

                  Anything I would change, or things you'll want to watch out for?

                  You *will* want to have the repository handy, and I prefer when a technical book can easily stand without its repo. I also like a test-driven approach. The problem is that either of these could have easily doubled the number of pages. It is an understandable tradeoff, and his approach does allow a quicker read.

                  You may also come across issues with libraries behaving differently depending on what version you have installed. The repository includes requirements files for Python's pip package installer, so you will find guidance on what versions you should have installed. You could even run `pip install -r requirements/dev.txt` as soon as you check out the repo.

                  I'm glad I got the book, and I think you should too. Odds are that it will help you become a better Web developer with Flask and in general.

                  Displaying reviews 1-10

                  Back to top

                  Previous | Next »

                   
                  Buy 2 Get 1 Free Free Shipping Guarantee
                  Buying Options
                  Immediate Access - Go Digital what's this?
                  Ebook: $33.99
                  Formats:  DAISY, ePub, Mobi, PDF
                  Print & Ebook: $43.99
                  Print: $39.99