1👍
You can access the raw cookie header with request.META["HTTP_COOKIE"]
, then parse it with the Cookie
library.
For example:
>>> import Cookie
>>> x = Cookie.SmartCookie()
>>> x.load(request.META["HTTP_COOKIE"])
>>> x['spam']
<Morsel: foo='eggs'>
Source:stackexchange.com