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 = request.POST.copy()
if postdata['submit'] == 'Remove':
cart.remove_from_cart(request)
if postdata['submit'] == 'Update':
cart.update_cart(request)
cart_item_count = cart.cart_item_count(request)
page_title = "Shopping Cart"
cart_subtotal = cart.cart_subtotal(request)
return render_to_response(template_name, locals(),
context_instance=(request))
Thanks for your help..
On Sun, Jul 10, 2011 at 11:57 PM, Shawn Milochik <[email protected]> wrote:
> 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 users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to django-users+unsubscribe@**
> googlegroups.com <django-users%[email protected]>.
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
> .
>
>
--
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.