Skip to content

NoReverseMatch at /shop/cart/ #6

@sdnnet3

Description

@sdnnet3

NoReverseMatch

Reverse for 'cart_add' with arguments '('',)' not found. 1 pattern(s) tried: ['shop\/cart\/add/(?P<product_id>\d+)/$']

in cart details:
return redirect('cart:cart_detail')
def cart_detail(request):
cart = Cart(request)
for item in cart:
item['update_quantity_form'] = CartAddProductForm(initial={'quantity': item['quantity'], 'update': True})
return render(request, 'cart/detail.html', {'cart': cart}) ...
▶ Local vars

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions