r/FastAPI • • Sep 07 '24

Question Migration from Django to FastAPI

Hi everyone,

I'm part of a college organization where we use Django for our backend, but the current system is poorly developed, making it challenging to maintain. The problem is that we have large modules with each of their logic all packed into a single "views.py" file per module (2k code lines and 60 endpoints aprox in 3 of the 5 modules of the project).

After some investigation, we've decided to migrate to FastAPI and restructure the code to improve maintainability. I'm new with FastAPI, so I'm open to any suggestions, including recommendations on tools and best practices for creating a more scalable and manageable system, any architecture I should check out.

Thanks!

14 Upvotes

43 comments sorted by

View all comments

Show parent comment

2

u/koldakov Sep 07 '24

No worries mate, I’m pretty convinced if you know everything and don’t get new information every day that’s a bad path, we all still learning stuff even after 10 year dev

2

u/aprettyparrot Sep 07 '24

Couldn’t agree more :>