polyblog/blogapp/urls.py

11 lines
317 B
Python

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