Forums

Setting up front end with python api on same server

I have a django rest framework api app which I've got successfully running, but now I want to add my react front end files to the same server.

I'm sure this should be simple but the answer is evading me. I need the react app to be at the root of the domain, but still be able to access the django admin at /admin.

Thanks!

You need to add catch-all routing to your urls.py