i use django 2.0.9.
I am creating a project in which the display is changed by changing the value of the cookie.
I want to change my cookie's value in javascript or html.
I want to set a cookie in 'index.html'
in javascript, I can get cookie's value as {{request.COOKIES.glob }}
and how can I change glob`s value to 1 ..
in my View.py)
response = render(request, 'index.html')
response.set_cookie('glob',0)
return response
I already search in google, but I can't find any answers ... please help me. t_t