Have Django templates render registration/login form and React rest of the application

319 views Asked by At

Is it a good approach to have Django built-in templates to handle login/registration views, which on successfull login would redirect to a login required view with html template that has the React application embeded in it? Rest of the communication would be a django-rest-framework and React-query or redux-saga on the frontend. Obviously no request without the user authorized will be allowed.

1

There are 1 answers

2
Diego Puente On

Yes if the only client will be web.

No if maybe later you will have another clients for that api (like andriod app, ios app, or microservices calls) that need authenticate.