5 ms·
Flask is also awesome for python-based web development. I found it very easy to jump in as the docs are great: http://flask.pocoo.org/ http://flask.pocoo.org/
by _mattb 15y ago
Flask is also awesome for python-based web development. I found it very easy to jump in as the docs are great: http://flask.pocoo.org/ http://flask.pocoo.org/
Here's the post's Django example written using Flask: https://gist.github.com/1296926 https://gist.github.com/1296926
- mccutchen 15y agoNice. It does seem like one of the lighter-weight Python web frameworks might fit in better with the overall theme of this intro, and Flask is a great choice. I thought about doing the same thing as I read through it.
- Mizza 15y agoThis is really, really cool. Thanks for making this. I really dig the Flask project (love the website and the docs, and everybody who uses it raves about it) and I hope to play with it more in the future, but I don't think I'd recommend it to somebody who is a first timer, largely because of one issue: Data. Flask leaves you to sort it out on your own, which is great if you're capable of that, but Django holds your hand, which is more appropriate for a beginner.
- akavlie 15y agoData? Can you explain that? Not sure what you mean.
- Acorn 15y agoI think Mazzo is referring to a lack of Django's ORM.
- anthonyb 15y agoI'm pretty sure he means that there's no database support built in, ie. you need to go download something like SQLAlchemy, SQLObject, Storm, etc. If you're already going to do that anyway it's not so much of an issue, but for people who are just getting their feet wet, it's yet another obstacle to overcome.
- akavlie 15y agoAh, of course. And it makes sense -- I think Flask is a much easier introduction to config and the VC of MVC development... but once you get to the M, well... SQLAlchemy is great, but the learning curve is steeper. And even though Flask has a well-documented extension for that, it's still another package and a separate piece of documentation.
- SoupIce 15y agoYou have flask-peewee which provides data.
- jamesgeck0 15y agoAs a first-timer, I really appreciated having Flask around. It might not have a database layer, but it did have really excellent documentation. I felt like I had a much firmer understanding of what was happening with Flask than I did with Django.