Forums

How Can I deploy a django app with react as frontend?

I have created a webapp in django in which the frontend is made using react.js. I want to now deploy it on pythonanywhere but I have no idea of how to do that. Is there any tutorial or some resource to help me with that?

You just need to deploy it like any other Django project. To make sure that you serve up your compiled React code, you'll need to make sure that you set up your static file mappings correctly. If you want to compile the React code from JSX to JavaScript on PythonAnywhere, you should use NVM to get a recent version of Node.