An Interest In:
Web News this Week
- April 13, 2024
- April 12, 2024
- April 11, 2024
- April 10, 2024
- April 9, 2024
- April 8, 2024
- April 7, 2024
June 9, 2020 08:13 am GMT
Original Link: https://dev.to/nyamador/build-a-complete-warehouse-management-system-with-react-and-django-529a
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 %}
Original Link: https://dev.to/nyamador/build-a-complete-warehouse-management-system-with-react-and-django-529a
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To