aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content/urls.py
blob: 5a4ee37ad87d1155b1585a461d7b04a81d950573 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from django.urls import path

from . import views

app_name = "content"
urlpatterns = [
    path("", views.ArticlesView.as_view(), name='content'),
    path("category/<str:category>/", views.CategoryView.as_view(), name='category'),
    path(
        "category/<str:category>/<str:article>/",
        views.ArticleView.as_view(),
        name='category_article'
    ),
    path("<str:article>/", views.ArticleView.as_view(), name='article')
]