Unfortunately, I didn't show my entire URLpatterns list, and the ^item/$ seems to interfere with the ^$ of the previous: Any suggestions for a work around? thanks again.from django.conf.urls import include, urlfrom django.contrib import adminfrom rest_framework.urlpatterns import format_suffix_patternsfrom durham_app import viewsurlpatterns = [# Examples:url(r'^admin/', include(admin.site.urls)),url(r'^$', views.index, name='index'),url(r'^item/$', views.item_detail, name='item_detail'),url(r'^items/', views.ItemList.as_view()),]urlpatterns = format_suffix_patterns(urlpatterns)
| Exception Type: | NoReverseMatch |
|---|---|
| Exception Value: | Reverse for 'item_detail' with arguments '(1, 1)' not found. 2 pattern(s) tried: [u'item\\.(?P<format>[a-z0-9]+)/?$', 'item/$'] My Views:
index.html
|
|
|