PythonAnywhere Forums

Django React app

Apologies if this has been covered before. Seems like it should have been but I couldn't find anything here.

Anyhow, I have a Django 1.1.1.7 and React, redux app with webpack 3 working perfectly on on dev machine. I was hoping to have a production version here on PA.

I was happy to find node and npm here and even updated the node and npm versions. So far so good. So the problem is, so far on my dev machine I made Django work with react using node server.js as described here http://owaislone.org/blog/webpack-plus-reactjs-and-django/

Is this possible here on PA? I know there is no node server here but may be an alternate way? I see some flask threads but not django relevant to this.

Please, any ideas much appreciated. Thanks

I would think you'd just want to serve the Javascript as static files. See our help pages for details on configuring static files.

Thanks! You are correct. I was under impression I would need a node server at the backend. But that's clearly not the case.