polyblog/blogapp/urls.py

11 lines
341 B
Python

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