Server Side react javascript
Last updated
Was this helpful?
Last updated
Was this helpful?
The source repository is
Once you have react deployed to public web site, then you have exposed your code logic.
So, put it to server side and only allow login user to accept.
In frontend/templates/index.html
and in fontend/urls.py
, map js
to urlpatterns
.
I have js output from django view.
In frontend/views.py
, the js file is only available after login. JS is a protected file, then just output file system.
Through this concept, server side react can be in any kind back end server.
Also in the django restframework, all views are login required.
LoginRequiredMixin
is always the first argument in the class.