I have the following URL entry for my application:
url(r'^(?P<pk>\d+)/(?P<action>add|edit)/type/$', 'customer.views.edit', name='customer-edit'),
I want to publish this url using reverse. When I do the following, I get a NoReverseMatch error message:
self.client.post(reverse('customer-edit'), {'something:'something'}, follow=True)
This is a complete error: NoReverseMatch: Reverse for 'customer-edit' with arguments '()' and keyword arguments '{}' not found.
Do i need to pass arguments or kwargs to the opposite? If so, how do they look to match the above URL?
source share