10 lines
247 B
Python
10 lines
247 B
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = 'blog'
|
|
urlpatterns = [
|
|
path("", views.ArticleListView.as_view(), name="article_list"),
|
|
path("<int:pk>-<str:slug>/", views.ArticleDetailView.as_view(), name="article_detail"),
|
|
]
|