title: django python - generic views and cookies
body: <p>I made in my web a menu using generic_view - simple 'django.views.generic.list_detail.object_list' in urls.py file.
  I would like to set a cookies each time when user chooses one of element of this list [HttpResponse.set_cookie(...)].
  What is the best solution? Should I write function in views.py or have you got more simple solution?</p>
  
  <h2>Edit 1</h2>
  
  <p>This is the fragment of my urls.py:</p>
  
  <pre><code>manufacturer_dict = {
                          'queryset': Manufacturer.objects.all()
  
                       }
  
  urlpatterns = patterns('',
  
      url(r'^$', 'django.views.generic.list_detail.object_list', manufacturer_dict),
  
  
  
  )
  </code></pre>
  
  <p>And template: manufacturer_list.html  </p>
  
  <pre><code>&lt;ul&gt;
  {% for object in object_list %}
      &lt;li&gt;&lt;a href="{{object.get_absolute_url}}" title="{{object.name}}"&gt;{{object.name}}&lt;/a&gt;&lt;/li&gt;
  {% endfor %}
  &lt;/ul&gt;
  </code></pre>
  
  <p>I am only using generic_views.</p>
  
  <p>This is list of mobile phone models. I want to remember the users mobile model in the cookie.  </p>