Update

My React Frontend now authenticates successfully with my django backend through Token Authentication. Might change it to JWT’s later on. My only doubt is whether to continue storing the Token in localstorage in the screenshot below(Might be a vulnerability) or request the token on every request to the backend (Delayed responses due to two round trips?). Please comment below with your views .

Caching Added A Caching layer as well with Redis. It only caches a section of the template rendered by homepage and some other read heavy pages. This is built into django with the help of the caching templatetags.

# view
from django.views.decorators.cache import cache_page

@cache_page(60 * 15)
def my_view(request):
    ...

 # template file
{% load cache %}
  {% cache menu request.user.email %}

 # menu for logged in user

{% endcache %}

Auth Token

This post is also available on DEV.