diff options
author | 2020-11-28 10:00:19 +0200 | |
---|---|---|
committer | 2020-11-28 10:00:19 +0200 | |
commit | fa3eb372ade66d71e387beac20c33892788298dd (patch) | |
tree | d04e316bbb42522a64d9699492e0595c242355d6 /pydis_site/apps/content/urls.py | |
parent | Create categories and articles listing template (diff) |
Update URLs to match new unlimited categories articles
Diffstat (limited to 'pydis_site/apps/content/urls.py')
-rw-r--r-- | pydis_site/apps/content/urls.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pydis_site/apps/content/urls.py b/pydis_site/apps/content/urls.py index cd41751b..49a5a2ef 100644 --- a/pydis_site/apps/content/urls.py +++ b/pydis_site/apps/content/urls.py @@ -5,11 +5,5 @@ from . import views app_name = "content" urlpatterns = [ path("", views.ArticlesView.as_view(), name='articles'), - 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') + path("<path:location>/", views.ArticleOrCategoryView.as_view(), name='article_category'), ] |