Hi, I am trying to access a simple session attribute in the following way (this is inside a view function):
def setSessionData(request): if not request.session.get('data_was_set', False): comLen=get_comment_count() request.session['alert_count'] = comLen request.session['data_was_set'] == True and I am getting a KeyError exception on the 'if' line (This exception is supposed to be thrown only on delete operations). Any idea anyone? Thanks, Yaniv --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---