[Answer]-TemplateSyntaxError after migrating to python 2.7

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'),

Leave a comment