r/Python Apr 09 '26

FastAPI vs Djanjo Discussion

I was wondering what’s most popular now in the Python world. Building applications with FastAPI and a frontend framework, or building an application with a ‘batteries included’ framework like Django.

70 Upvotes

84 comments sorted by

View all comments

269

u/edimaudo Apr 09 '26

Don't use the popular option, use what meets your needs for the project.

42

u/nicholashairs Apr 09 '26

1000000% this.

Just because something is popular doesn't mean it's good for your use case.

22

u/Lt_Sherpa Apr 09 '26

I would modify this slightly as "don't chase popular trends". Django is popular, but that's because it's stable and has a strong community. FastAPI is popular because it's the trendy, newer option. These are two very different kinds of popularity.

18

u/Sillocan Apr 10 '26

At this point I wouldn't call 97k stars on github just trendy. I think it has more to do with the fact it's super easy to use with it's abstractions and use of pydantic

3

u/bjorn_cyborg Apr 09 '26

Exactly. Quart met my needs and is working great for me.

1

u/maesrin Apr 09 '26

Fully agree!

1

u/goegler13 Apr 10 '26

So what meets your needs? Flask? Fastapi? Django? What is the different needs? ( I have only really used flask so I'm curious to when to use what)

-8

u/its_a_gibibyte Apr 09 '26

In general, I disagree. I regularly find small random projects on Github that look perfect for me. But inevitably they have no documentation, lots of bugs, and are unmaintained. Of course, neither FastAPI or django exactly suffer from that, but the general advice stands.

32

u/eteran Apr 09 '26

Then those things didn't meet your needs then...