Live data from Hacker News

Ask HN: Django or Flask as first web framework?

news.ycombinator.com

11–16 of 16 posts

Re: Ask HN: Django or Flask as first web framework?

#11
I started learning Django as my first web framework. If I had to do it over I would have spent a month with Flask, and then moved to Django. Django is a big app, and I found it difficult to build a mental model of its workings. Maybe starting with a smaller framework would have made it easier.

Re: Ask HN: Django or Flask as first web framework?

#12
I think if you end up in development as a career, Django is going to be used incredibly more often than Flask.

In the end, you will learn the internals either way. If you start with Flask, you'll still have to learn about Django internals.

Start with Django (and you'll probably never switch to Flask).

Re: Ask HN: Django or Flask as first web framework?

#13
post #12

I think if you end up in development as a career, Django is going to be used incredibly more often than Flask. In the end, you will learn the internals either way. If you start with Flask, you'll still have to learn about Django internals. Start with Django (and you'll probably never switch to Flask).

And to answer your last question--I'd think assuming fast learner, and you're already competent with python, I'd think a few days and you can have up a basic app (blog, wiki, something like that), and a few weeks and you'll be pretty comfortable with any normal CRUD app.

Re: Ask HN: Django or Flask as first web framework?

#14

You can never go wrong with Django. It comes with enough batteries included to get you up and running with complex projects quickly. Plus, there's a lively ecosystem of useful libraries built on top on Django that make complex tasks a breeze. If you want to built useful webapps quickly , Django is the way to go. The assertion that Flask gives you a better look under the hood is, in my opinion, incorrect. With Flask,…

I agree completely. However, personally I am using Flask only because tacking SQLAlchemy on top of Django feels so hacky. I wish there was a second full stack framework with SA.

Re: Ask HN: Django or Flask as first web framework?

#15
post #14

You can never go wrong with Django. It comes with enough batteries included to get you up and running with complex projects quickly. Plus, there's a lively ecosystem of useful libraries built on top on Django that make complex tasks a breeze. If you want to built useful webapps quickly , Django is the way to go. The assertion that Flask gives you a better look under the hood is, in my opinion, incorrect. With Flask,…

I agree completely. However, personally I am using Flask only because tacking SQLAlchemy on top of Django feels so hacky. I wish there was a second full stack framework with SA.

Have you given Pyramid a look?

Re: Ask HN: Django or Flask as first web framework?

#16
post #14

Earlier quoted context omitted.

I agree completely. However, personally I am using Flask only because tacking SQLAlchemy on top of Django feels so hacky. I wish there was a second full stack framework with SA.

Have you given Pyramid a look?

The core Pyramid setup is actually just as minimal as Flask is. You need to add a million different Pyramid_ addons to get "full stack" functionality.
Post reply on HN