Hacker News new | past | comments | ask | show | jobs | submit login

I can second that Miguel's tutorial is quite nice and sufficient to build Flask apps.

Thanks to Miguel (and also official Flask docs) I have some Flask Apps running non stop for a few years by now.

Flask is extremely easy to write in regards that the mental model is easy to follow. Sure there is magic there but the abstractions seem "non-leaky". By contrast I can't get into Django because it seems too much magic.

The worst part of using Python for back end was deployment. Setting up WSGI server to host Python apps was a bit of a pain.

https://flask.palletsprojects.com/en/2.1.x/deploying/

I think I went with Gunicorn but there was a bit of learning curve there. I am not even sure if that was the right choice




If you've used Google Cloud, you should be able to get this tutorial running in minutes:

https://cloud.google.com/run/docs/quickstarts/build-and-depl...


Coming from Rails, I appreciate Django's less-magical approach. I admit it has some silly limitations though, like not being able to call methods with arguments in templates, and the whole mixin view generic classes, just to name a few

That being said, Django is great, and so is Python :)




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: