Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
June 9, 2020 08:13 am GMT

Build a complete warehouse management system with React and Django.

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.

#viewfrom 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


Original Link: https://dev.to/nyamador/build-a-complete-warehouse-management-system-with-react-and-django-529a

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To