from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.listall, name='listall'), url(r'^(?P\d+)/$', views.detail, name='detail'), url(r'^category/(?P\d+)/$', views.list_category, name='category'), #url(r'^$', views.detail, name='detail'), ]