blob: 3f469156370399cf474a14427e5e9eca443d0f57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
from django.conf.urls import url
from . import views
app_name = "notes"
urlpatterns = [
url(
r'(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>[-\w]+)$',
views.entry_detail
),
url(
r'(?P<year>\d{4})/(?P<month>\d{2})/$',
views.date_list,
name="notes_by_month"
),
url(
r'(?P<year>\d{4})/$',
views.date_list,
name="notes_by_year"
),
url(
r'^$',
views.entry_list,
name="notes_archive"
),
]
|