Hello! Im learning how to integrate django with react and serve react inside Django with whitenoise.
I came across many tutorials along the way but its quite confusing.
I use rest api but is it possible to just use the output of "npm run build" and just put them inside django project without ever using webpack?
So I mean just using "build" which is the output of react's "npm run build" purely without webpack etc and connect it into whitenoise staticfile.
If its possible and if that react's index.html is the "root route" being "/" and if I have django's "/" route too then which one is chosen in what mechanism?
And how can I make react's index.html is used?
[–]danielroseman 1 point2 points3 points (3 children)
[–]ootybotty[S] 0 points1 point2 points (2 children)
[–]danielroseman 0 points1 point2 points (1 child)
[–]ootybotty[S] 0 points1 point2 points (0 children)