Skip to content Skip to sidebar Skip to footer

Getting A Caught Noreversematch Error In Django

I have a view called edit_order, and I have another view called client_items. def edit_order(request, order_no) change_item = order.contact.client def client_items(request, cl

Solution 1:

Well, how are you passing the order_no parameter? And what does your urls.py look like? In your modified template you are not passing an order_no to the {% url %} tag. If your URL regexp requires both parameters (client_id and order_no) then it won't find a matching URL. You could try something like this in urls.py:

urlpatterns = patterns('tiptop.views',
    (r'^(\d+)/(\d*)$', 'test_items'),
)

But in your case, it might be better to just pass the order_no as a GET parameter.

Post a Comment for "Getting A Caught Noreversematch Error In Django"