'WSGIRequest' object has no attribute 'cookies'
<p>I am making a webpage. There are two views. <code>Index</code> and <code>Detail</code>.
In index I setup the cookie for user using <code>response.set_cookie('key', key)</code> where <code>response = HttpResponseRedirect(file_url)</code>. In <code>detail</code> function when I try to get data from cookie using </p>

<pre><code>   if 'key' not in request.cookies:
      key = request.COOKIES['key']  
</code></pre>

<p>I am getting error: <code>'WSGIRequest' object has no attribute 'cookies'</code>. 
Detailed error link : <a href="http://dpaste.com/1P017V6" rel="nofollow">http://dpaste.com/1P017V6</a></p>

<p>Please help me!.
Thanks in advance.</p>