khaganat-web/logs/urls.py
2018-02-04 20:28:09 +01:00

23 lines
548 B
Python

from django.urls import path
from . import views
urlpatterns = [
path('', views.IndexView.as_view(), name='log_index'),
path(
'<slug:source>/<int:year>/<int:month>/<int:day>/',
views.EntriesView.as_view(),
name='log_day'
),
path(
'switch/source/<int:pk>/',
views.switch_source,
name='log_switch_source'
),
path(
'switch/entry/<int:pk>/',
views.switch_entry,
name='log_switch_entry'
),
path('search/', views.search_view, name='log_search'),
]