Re: 'WSGIRequest' object has no attribute 'update'

2011-07-11 Thread Phang Mulianto
> > > The bug is in this line. render_to_response() takes a dictionary as the > context_instance, but this code just passes the request instance. > > You probably meant either: > > return render_to_response(template_name, locals(), > context_instance=(request, )) # Note comma > > or > > return ren

Re: 'WSGIRequest' object has no attribute 'update'

2011-07-11 Thread Malcolm Box
Hi,. On 11 July 2011 08:29, Phang Mulianto wrote: > > > return render_to_response(template_name, locals(), > context_instance=(request)) > The bug is in this line. render_to_response() takes a dictionary as the context_instance, but this code just passes the request instance. You probably

Re: 'WSGIRequest' object has no attribute 'update'

2011-07-11 Thread Phang Mulianto
Hi Shawn, Here are the view called : # Create your views here. from django.shortcuts import render_to_response from django.template import RequestContext from ecomstore.cart import cart def show_cart(request, template_name="cart/cart.html"): if request.method == 'POST': postdata = re

Re: 'WSGIRequest' object has no attribute 'update'

2011-07-10 Thread Shawn Milochik
May we see the rest of your view? If not, you'll have to figure it out by examining exactly what your 'request' variable contains. The error is clearly from calling update() on it, and it not being allowed. -- You received this message because you are subscribed to the Google Groups "Django us

'WSGIRequest' object has no attribute 'update'

2011-07-10 Thread Phang Mulianto
ect has no attribute 'update' Request Method: GET Request URL: http://127.0.0.1:8000/cart/ Django Version: 1.3 Exception Type: AttributeError Exception Value: 'WSGIRequest' object has no attribute 'update' Exception Location: c:\python27\lib\site-packages\djang