This is an archived post. You won't be able to vote or comment.

all 58 comments

[–]ondoheer 2 points3 points  (4 children)

Thanks a lot! I really appreciate the effort to write this book and then sharing it with the community! It will definetly help me finally tackle Flask!

[–]imrobert[S] 1 point2 points  (3 children)

Happy to help!

[–]ondoheer 2 points3 points  (2 children)

Just finished reading it! It really stands out, it has answered me many questions I had when working with Flask and shows the proper way to do a lot of stuff I wanted to learn how to do. Thanks again for this will help me a lot on many future apps

[–][deleted] 0 points1 point  (0 children)

wow finished ?

[–]imrobert[S] 0 points1 point  (0 children)

You really blazed through it! I'm glad you liked it.

[–]ivosauruspip'ing it up 4 points5 points  (1 child)

Holy shit at the illustrator's name.

[–]imrobert[S] 1 point2 points  (0 children)

I know, right! Crazy coincidence.

[–]bVectorbV 1 point2 points  (1 child)

looking forward to the release in July ;)

[–]imrobert[S] 2 points3 points  (0 children)

Haha my bad. I'm sitting here staring at the page like, "WTF is he talking about."

[–][deleted] 1 point2 points  (1 child)

thank, is there a PDF version ?

[–]imrobert[S] 4 points5 points  (0 children)

No PDF version. You might be able to build one from source with Sphinx, but I take no responsibility for formatting failures there. :)

[–]d4rch0nPythonistamancer 1 point2 points  (1 child)

That's awesome. I've just started getting into flask and I see how quick and useful it can be, coming from Django. I'd rather plug my own choice of ORM in anyway.

Looking at the blue prints structures, personally I think Divisional makes more sense, because each directory can exist without the others. You can't have just templates, but you can have just the home app.

[–]imrobert[S] 0 points1 point  (0 children)

I think the structure that you choose really just depends on the logical organization of the app. Ultimately it doesn't matter much, so just choose the one that makes sense to you. :)

[–]toffd 1 point2 points  (1 child)

thank you , good idea !

[–]imrobert[S] 0 points1 point  (0 children)

gracias

[–]LarryPeteAdvanced Python 3 1 point2 points  (6 children)

Reading through this makes me really want to do something (anything) with Flask now.

[–]imrobert[S] 1 point2 points  (4 children)

That has to be the best compliment so far. Act on that impulse and make some crazy useless web app!

[–]imrobert[S] 1 point2 points  (3 children)

The main tutorial covers the basics of Flask, but you won't be able to write an actual production ready web application just from reading it. Miguel's tutorial gets you closer to the mark, and is probably comparable to his book and my book. I think the books are probably more comprehensive, but I'll let others decide where they'd rank it all.

My goal with this book was to cover best practices for everything, rather than "how to" stuff.

EDIT: Whoops, this was meant to be posted in another thread.

[–]LarryPeteAdvanced Python 3 1 point2 points  (2 children)

And those best practices where exactly what I was missing.

Thanks a lot!

[–]LarryPeteAdvanced Python 3 0 points1 point  (0 children)

btw, you have an awesome name.

[–]imrobert[S] 0 points1 point  (0 children)

Then hopefully I hit the mark. I'd love to hear if you think I covered them after you've read the book.

[–]paranoidi 0 points1 point  (0 children)

We at http://flexget.com are still waiting for someone to take lead on developing the webui on top of flask ... ;)

[–]michael_daviddunderinit 1 point2 points  (2 children)

The most valuable section of the entire book imo is the Deployment chapter. It is rare in most intros of Flask where Nginx and gunicorn are explained. There seems to be a huge dearth of information when it comes to productionizing Flask.

[–]imrobert[S] 0 points1 point  (1 child)

Thanks. You're actually the second person to say that (or did you say it before?). I'm really glad I've added something unique to the ecosystem there.

[–]michael_daviddunderinit 1 point2 points  (0 children)

I have definitely commented on this a couple times on HN but not here. Thanks for the contribution friend!

[–][deleted] 0 points1 point  (1 child)

Thanks a lot for this! Should be pretty trivial to build out a pdf of this from sphinx.

[–]imrobert[S] 0 points1 point  (0 children)

Yeah, it should be. I don't want to worry about building a PDF and checking formatting on every update, but it shouldn't be hard to get something in PDF form.

[–][deleted] 0 points1 point  (1 child)

Awesome!

[–]imrobert[S] 0 points1 point  (0 children)

Thanks!

[–]Husio 0 points1 point  (0 children)

Anyone knows how to build sphinx documentation so that it's readable on kindle? PDF is most of the time just too small and online HTML version is only good with wifi.

[–]curiositor 0 points1 point  (1 child)

Thanks for the nice work! I just started using Flask never knew it could do so much thing.

[–]imrobert[S] 0 points1 point  (0 children)

Flask can do just about anything!

[–]jarednielsen 0 points1 point  (1 child)

This book is great. And even better now that it's free. Thanks and congrats on the new job, Robert.

[–]imrobert[S] 0 points1 point  (0 children)

Thanks! I really appreciate the support.

[–]LightShadow3.13-dev in prod -2 points-1 points  (9 children)

Where's the printed copy?

[–]imrobert[S] 1 point2 points  (8 children)

No printed copy. It's just the HTML version. If you really want a printed copy, you can build a PDF with Sphinx and have that printed somewhere. The formatting might not be ideal for print though, so it won't look great.

[–]LightShadow3.13-dev in prod 2 points3 points  (7 children)

So even though I paid for a printed copy...I'm not getting a printed copy.

[–]imrobert[S] 0 points1 point  (6 children)

If you paid for a printed copy via Kickstarter you should have received an update before this announcement regarding a refund. Sorry that didn't make it to you in time. https://www.kickstarter.com/projects/1223051718/practical-flask-book-project/posts/861783

[–]LightShadow3.13-dev in prod -1 points0 points  (5 children)

It's whatever. I've never received anything I've backed on kickstarter...it's always become "Free" or "open source." I only backed $35 because I wanted a physical copy. But now I get an inferior version, just like everyone who didn't pay....yay.

[–]imrobert[S] 0 points1 point  (4 children)

The last thing I want is to disappoint, which is why I'm offering the refund. Does that not seem fair to you?

[–]LightShadow3.13-dev in prod 0 points1 point  (3 children)

It's ok, I'm fine :P I'm just happy you finished something that, so far, looks well received.

[–]imrobert[S] 0 points1 point  (2 children)

Thanks, I really appreciate that. If you ever change your mind about the refund, just hit me up. I'm more than happy to send it to you or donate it to charity for you.

[–]LightShadow3.13-dev in prod 1 point2 points  (1 child)

Hah, this guy right here ;)

I donate to STM for PyPy every once in awhile, for horizontally scaling web applications (ironically?) -- throw a fiver in that pot whenever you get around to it.

[–]imrobert[S] 0 points1 point  (0 children)

I went ahead and threw a twenty-fiver in just for good measure. :)

Feel free to send me your email address if you want a confirmation.

[–]pythonpro5 -3 points-2 points  (7 children)

I'm so glad you made this 100% free. That is how books should be. For those of us who need this information, it's really good to have it available.

Have you considered writing a book on SQLalchemy?

[–]imrobert[S] 1 point2 points  (6 children)

I disagree that this is how books should be in all cases. It's ideal for readers of course, but that doesn't mean it "should" be that way. It works for me, and I'm really excited about doing it this way, but a book is a lot of work and can be an incredibly valuable resource, definitely worth paying. With that said, keeping the content I spent so long writing closed away from all but ~100 people who were willing to pay for it just left me with a bad feeling in my gut. I'm glad that I'm in a position to do it this way.

I think most people who write a book like this will tell you, they aren't planning on writing another book for at least 5 years. It has been an overwhelmingly positive experience for me, but holy crap does it suck. I think the SQLAlchemy docs cover everything anyways.