Hi everybody, i've been tinkering around with cookies scinc some days. They work so far for me, but i fear the way that i use them right now is not the django way and it isn't a DRY way. This is how i do it right now, i have some views and everytime the view is called it checks if there is a certain cookie set or not and if it isnt set then the view sets it: try: request_rated = request.session['rated'] except: request.session['rated'] = "" request_rated = request.session['rated']
Is there a more "django" way to use them? The cookies problem is keeping me right now from using generic views and this bugs me a bit. Greetings Sven --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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 -~----------~----~----~----~------~----~------~--~---