Can I use Django with React ?

I want to use Django for Backend and React for Frontend for an Inventory project.

Does anyone have an example or experience can me share to guide me?

1 Like

Yes, it works great! Django handles the backend as a REST API (using Django REST Framework) and React consumes it on the frontend.

The setup is straightforward — install djangorestframework and django-cors-headers, expose your API endpoints, then fetch from React with fetch or axios. That’s basically it.

The DRF quickstart docs are a solid starting point.

1 Like

Also found this thread that might help you

1 Like

Thank you @amourivoid

1 Like