2018-01-27 17:58:36 +00:00
|
|
|
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = [
|
2018-06-03 20:16:40 +00:00
|
|
|
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>/',
|
2018-02-04 19:28:09 +00:00
|
|
|
views.EntriesView.as_view(),
|
|
|
|
name='log_day'
|
2018-01-27 22:12:09 +00:00
|
|
|
),
|
2018-02-04 19:28: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
|
|
|
]
|