how i can use the react in frontend with the django ??
Hi,
Sorry for the late reply.
Our Metronic Django Starterkit and React version are separate versions. The Django version functions as a server-side rendering application, while the React version is a client single-page application.
Currently, we haven't tested integrating our React version with Django, but we plan to explore this possibility for future updates.
For now, you can refer to the tutorial below.
https://medium.com/@devsumitg/how-to-connect-reactjs-django-framework-c5ba268cb8be
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi,
You have to build up a backend via Django and Django-rest framework (recommend) or graphQL. But you have to serve api entpoints not whole "render(request, template, context)".
For the frontend you have to call the apis and handle the output. I recomment axios for this.
The Django -Template provided by keenthemes is build for server-Side rendering.
Setting something up like this is quite complex and requires a higher level of knowledge.