>
>
> 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
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
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
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
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
5 matches
Mail list logo