r/FastAPI • • Apr 24 '22

Question Full stack app with FastAPI vs Django

Hello Community... It’s nice to be here 😄

So I have a question. Would it be production stable to develop a full stack application with FastAPI, just like Django?

fastapi #django

9 Upvotes

7 comments sorted by

4

u/eddyizm Apr 25 '22

I would say yes but if likely more work.

3

u/srsp0 Apr 25 '22

There are trade offs for flexibility and performance as well. Really depends on the use-case

1

u/Old_Explorer5134 Apr 28 '22

That’s True, please could you state some use cases, thanks

1

u/srsp0 Apr 28 '22

If your main goal is a performant api/app and are willing to put in the time to implement, I’d see no reason to hook up a solid front end framework to a well thought out fastAPI back end. If the goal is to get something up and running quickly and not have to worry about the important albeit time consuming things like auth, form handling, etc Django would be the move. What are you trying to build?

1

u/Old_Explorer5134 Apr 28 '22

Yes I agree with you, it’ll require you to write the admin site from scratch and geezzz 😱😱

2

u/eddyizm Apr 28 '22

Yeah like others said, depends on use case. You may not need the full admin site or maybe just a few things. All depends.

3

u/ShotgunPayDay Apr 25 '22

Well, you're on a FastAPI subreddit so of course I'm going to say building full apps is doable in FastAPI. The negative aspect is that you can't use Pydantic Models for your views as Pydantic returns JSON instead of the input Dictionary with an error list, but all your CRUD services are reusable for both the API and Webapp side. There is a talkpython course (paid) if you want to see someone build all the nuts and bolts for a full webapp. You can thumb through the github code if you're interested in how it's done for the course also. https://training.talkpython.fm/courses/details/full-html-web-applications-with-fastapi