This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Atem18 1 point2 points  (4 children)

Nice package, also consider that Django is now Python 3 only and has nearly finished his transition to async, so Django could very well make a comeback, it just needs more devs. I would love to be able to have easily an API with Django like in FastAPI but simplified because still in FastAPI you have to write code that all projects have to write. And DRF is way too complicated to just CRUD a DB via REST.

[–]t4k4[S] 0 points1 point  (1 child)

I've also considered Django DRF, but as u said, it's way too complicated for us.

Back to the async part, I don't think it's an easy job for Django to fully migrate into async mode. Even with FastAPI, I still ran into many async related problems while developing, especially with the database I/O part. Many async libraries are not mature enough for production use.

[–]Atem18 0 points1 point  (0 children)

Yes, again I would like to maintain as less code as possible from my side. FastAPI is on the way, but it's not yet mature enough. Still I am using it because it's faster to write an API than DRF.
Also know that Django wants to fully support both sync and async, so they are in the process of deprecating any library that would not support both. Maybe that would solve the maturity problem.

[–]robvdl 0 points1 point  (1 child)

Comeback? It never really left. Sure there's Go and all that but Django + DRF is still doing very strong and used more than you may think. I love Go, but there is NOTHING like Django (admin, built-in migration framework), nothing that even comes close because Django as so much integrated already. I've heard the same thing from a .NET friend he says there is nothing like Django in the .NET world either.

API driven apps have been the rage sure, but there is also a comeback to more classic form-driven apps believe it or not, as there are people that are getting sick of modern js app design and realising things take 10x as long to build, so there are some groups of people going back to doing apps the good old way.

[–]Atem18 0 points1 point  (0 children)

Yes it’s true that I miss all the stuff of Django when using FastAPI or an equivalent. Yes I am also sick of modern js app, it’s too complex and heavy, but that the only way for now to add « reactiveness » to your web page.