The relevant code is simple: response = HttpResponseRedirect('/colors/') response.delete_cookie(key=color_id, path='/') return response
But when I try to run it, I get the error: TypeError at /colors/delete/colorcompare29108/ translate() takes exactly one argument (2 given) Exception Location: /usr/lib/python2.6/string.py in translate, line 493 The value of color_id is just a string (in this case it was colorcompare29108). Any suggestions? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.