ok. i made a change which includes your modified-true suggestion  and
a possibly relevant solution found here:

http://code.djangoproject.com/wiki/NewbieMistakes#Appendingtoalistinsessiondoesntwork


    if 'good_message_box' not in request.session:
        request.session['good_message_box'] = MessageBox(sort='good')
    mb = request.session['good_message_box']
    mb.messages.append('MessageBox: You have successfully logged in.')
    request.session['good_message_box'] = mb
    request.session.modified = True

It still doesn't work :(  The behaviour is unchanged.

On Dec 16, 8:16 am, SmileyChris <[EMAIL PROTECTED]> wrote:
> On Dec 16, 2:13 pm, itpaul <[EMAIL PROTECTED]> wrote:
>
> > However, unlike the shell behaviour which lists and deletes messages,
> > the template lists and retains the messages resulting in them
> > displaying repeatedly on every page.
>
> Most likely, the session isn't getting 
> saved.http://www.djangoproject.com/documentation/sessions/#when-sessions-ar...
>
> For the lazy:
> request.session.modified = True
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to