khaganat-web/logs/urls.py

24 lines
550 B
Python
Raw Normal View History

2018-01-27 17:58:36 +00:00
from django.urls import path
from . import views
urlpatterns = [
path('', views.EntriesView.as_view(), name='log_index'),
2018-01-27 22:12:09 +00:00
path(
'<slug:source>/<int:year>/<int:month>/<int:day>/',
views.EntriesView.as_view(),
name='log_day'
2018-01-27 22:12:09 +00:00
),
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'),
2018-01-27 17:58:36 +00:00
]