Re:Django 4.0 release candidate 1 released
by semitones on Monday November 22, 2021 @05:50AM
(#29305034)
You could use Django just for the backend and have your frontend code be written in React+Typescript, no?
[ Parent
| on HN ]
Re:Django 4.0 release candidate 1 released
by dvdkon on Monday November 22, 2021 @06:00AM
(#29305095)
But that means throwing out a large part of Django and writing lots of "interconnect" code. At that point I think it's better to choose a different backend, one that will generate typed Typescript client code (or use Typescript on the server and some clever metaprogramming).
Re:Django 4.0 release candidate 1 released
by mracette on Monday November 22, 2021 @09:14AM
(#29306467)
You can also just generate an Open API spec and use something like openapi-generators to produce typed client code for data fetching (https://github.com/OpenAPITools/openapi-generator)
Re:Django 4.0 release candidate 1 released
by Pandabob on Monday November 22, 2021 @10:53AM
(#29307715)
This has been such a life saver for me these past couple of months
Re:Django 4.0 release candidate 1 released
by Zababa on Monday November 22, 2021 @07:22AM
(#29305571)
The thing is that there's no TypeScript backend that gives you as much stuff out of the box as Django. You're either going to spend time on how to communicate between Django and TS, or spend time on how to recreate Django functionality in TS.