From the course: Building React and Django Apps

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Serving React code through Django's static files

Serving React code through Django's static files

From the course: Building React and Django Apps

Start my 1-month free trial

Serving React code through Django's static files

- [Instructor] To serve the production build of our React app, we have to add the front end route to our Django app settings file. The path will point to the React apps production files. Then in the Django URLs configuration we import serve and we add a catch all regular expression matcher that will serve the front end production code. Then we run the Django development server and we can see the production ready version of a React app.

Contents