This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/src/articles/urls.py

15 lines
676 B
Python
Raw Normal View History

2020-12-30 14:54:22 +01:00
from django.urls import path
from articles.views import api, feeds, html
urlpatterns = [
path("", html.ArticlesListView.as_view(), name="articles-list"),
path("drafts/", html.DraftsListView.as_view(), name="drafts-list"),
2021-03-02 20:42:54 +01:00
path("search/", html.SearchArticlesListView.as_view(), name="search"),
2021-03-04 18:48:48 +01:00
path("tag/<slug:slug>/feed/", feeds.TagFeed(), name="tag-feed"),
2021-03-04 18:24:22 +01:00
path("tag/<slug:slug>/", html.TagArticlesListView.as_view(), name="tag"),
2020-12-30 14:54:22 +01:00
path("feed/", feeds.CompleteFeed(), name="complete-feed"),
path("api/render/<int:article_pk>/", api.render_article, name="api-render-article"),
2022-09-23 23:19:16 +02:00
path("<slug:slug>/", html.view_article, name="article-detail"),
2020-12-30 14:54:22 +01:00
]