On Wed, 2008-12-17 at 11:44 -0800, Bobby Roberts wrote:
>
> > Have a look at theflush() method; I believe that might well be close to
> > what you are after.
> >
> > Regards,
> > Malcolm
>
>
> I'm trying to call the view below:
>
> def DoSessionReset(request):
> request.session.flush()
> return HttpResponseRedirect ('../shop')
>
>
> I'm getting this error:
>
> TypeError at /shop/start-new-order/
> 'str' object is not callable
You're getting a lot more than that, though. You're getting a full
tracreback that tells you where the problem is occurring, for a start.
Also, if the problem really is triggered by request.session being a
string, then something else is going wrong, since Django's session
middleware will never be setting it to a string.
So help us to help you here: give us the full traceback and try to work
out *what* is a string (and what the value of that string is) that is
being passed in unexpectedly.
Regards,
Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---