26 lines
999 B
Python
26 lines
999 B
Python
# -*- encoding: utf-8 -*-
|
|
"""
|
|
Created on 03.10.2011
|
|
|
|
@author: christian
|
|
"""
|
|
from django.urls import path
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path("", views.ArticleArchiveIndex.as_view(), name='article-archive'),
|
|
path('add/', views.ArticleForm.as_view(), name='add-article'),
|
|
path('edit/<int:pk>/', views.ArticleForm.as_view(), name='edit-article'),
|
|
path('<int:year>/', views.ArticleYearArchive.as_view(), name='article-archive'),
|
|
path('<int:year>/<int:month>/', views.ArticleMonthArchive.as_view(),
|
|
name='article-archive'),
|
|
path('<int:year>/<int:month>/<slug:slug>/', views.ArticleDetail.as_view(),
|
|
name='show-article'),
|
|
path('<slug:category>/', views.ArticleArchiveIndex.as_view(),
|
|
name='article-archive'),
|
|
path('<slug:category>/<int:year>/', views.ArticleYearArchive.as_view(),
|
|
name='article-archive'),
|
|
path('<slug:category>/<int:year>/<int:month>/', views.ArticleMonthArchive.as_view(),
|
|
name='article-archive'),
|
|
]
|