简体   繁体   中英

How to deploy Django + React project to hosting platform?

I used Django as backend and React as frontend. I want to know how to deploy this project to hosting platform such as heroku, netlify, etc. Can I deploy this project to one domain? Or should I have to use two doamins - one for Django and one for React?

Were you able to find the answer to this?

You will need to deploy two separate apps. I presume, you have been making axios/fetch calls between the frontend and backend on localhost? It will work just like that, except instead of localhost, the calls go to where ever the backend is deployed.

Now deploying is a beast of its own. Good luck

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM