Managed to get it to work in the meanwhile. Seems like the problem is
that all of a sudden I need to restart the server each time I do a
change otherwise the change is not taking affect. Not sure why this is
though...

On Mar 10, 3:51 pm, Daniel Roseman <roseman.dan...@googlemail.com>
wrote:
> On Mar 10, 12:45 pm, nivhab <yaniv.ha...@gmail.com> wrote:
>
>
>
> > 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
>
> Please post the traceback.
> --
> DR.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to