3 ms·
I would really like if there was a way to integrate with non-Python ecosystems. I know this is way outside the scope of Django, but I still have to mention it.
by HiPhish 1y ago
I would really like if there was a way to integrate with non-Python ecosystems. I know this is way outside the scope of Django, but I still have to mention it. The moment you want to rely on a JavaScript library or generate some CSS you pretty much have to pull in Node and NPM because there just so much value in those ecosystems. And then you have to put up with a second ecosystem with its own build system and somehow have to magically tie those two together, adding adapters on top of adapters.
- esafak 1y agoLike for what?
- umko21 1y agoDRF and Django Ninja do this? For magically tying the ecosystems, I recommend generating client side http libraries from the OpenAPI schema.
- avtar 1y ago> The moment you want to rely on a JavaScript library or generate some CSS you pretty much have to pull in Node and NPM because there just so much value in those ecosystems. Perhaps I'm missing details here but isn't that a reality with non-js web frameworks? The Phoenix docs mention esbuild and npm right off the bat: https://hexdocs.pm/phoenix/asset_management.html https://hexdocs.pm/phoenix/asset_management.html Laravel expects node, npm, and vite at the very least: https://laravel.com/docs/12.x/vite https://laravel.com/docs/12.x/vite
- gitaarik 1y agoYou can just add any frontend framework and bundler you like with django. Django just serves HTML templates and you can load your JS libraries in your HTML template. Yeah you can't use create-react-app or something. You have to do a little bit more work to set it up. But it is certainly very doable.
- michaelyin 1y ago[dead]