[Answered ]-Django not rendering the images present in the 'images' folder inside the build folder after merging the react app

1๐Ÿ‘

I have solved the problem. I am answering this question if in future somebody faces the same problem.

What I did is in the public folder in the react end I made a folder called the static and inside that I put the images folder. Then I ran the npm run build command which put the images folder in the static folder that react gives after build. And also changed the the image source inside the react end to the below source

<img src="/static/images/picture.jpg" />

And this did the job

Leave a comment