4 ms·
I work on a large Django project that has migrated to Webpack + React + Redux for parts of the frontend (eventually all of the frontend). There are many good t
by danpalmer 9y ago
I work on a large Django project that has migrated to Webpack + React + Redux for parts of the frontend (eventually all of the frontend).
There are many good things about this project, but the thing that struck me is that after reading through parts of it, I don't feel like I have any better understanding of getting Django and JS talking to each other well. I don't feel like this project makes any breakthroughs.
Things I'd like to see:
1. A nice way of integrating webpack-dev-server and Django's run server - it would be nice to run just one of them, but I think this still requires both.
2. A way to integrate Django's URL routing system with the frontend. In Django-land I can refer to a URL by name so that the actual URL can change - but this JS just has hard-coded URLs everywhere. It would be great to see a better alternative.
3. An advancement on the standard Django handling of static files. They way they've done it is the way I structured our project, but I always felt it was a bit hacky. I'd really like to see a nicer way.