1👍
✅
In this case, the error is because item.key.id
is currently equal to an empty string, which is not matching your url pattern.
Instead of:
(r'^edit/(\d+)$', 'views.edit'),
try:
(r'^edit/(\d*)$', 'views.edit'),
Source:stackexchange.com