-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
30 lines (22 loc) · 1.24 KB
/
urls.py
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
28
29
30
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'views.index', name='home'),
url(r'^(?P<year>\d+)/(?P<month>\d+)/(?P<day>\d+)/$', 'views.day', name='day'),
url(r'^action/$', 'views.action', name='action'),
url(r'^(?P<list_id>\d+)/(?P<series_id>\d+)/(?P<task_id>\d+)/edit/$', 'views.edit', name='edit'),
url(r'^(?P<list_id>\d+)/(?P<series_id>\d+)/(?P<task_id>\d+)/delete/$', 'views.delete', name='delete'),
url(r'^(?P<list_id>\d+)/(?P<series_id>\d+)/(?P<task_id>\d+)/postpone/$', 'views.postpone', name='postpone'),
url(r'^(?P<list_id>\d+)/(?P<series_id>\d+)/(?P<task_id>\d+)/complete/$', 'views.complete', name='complete'),
url(r'^today$', 'views.today', name='today'),
url(r'^prev_day$', 'views.prev_day', name='prev_day'),
url(r'^next_day$', 'views.next_day', name='next_day'),
# Example:
# (r'^rtmob/', include('rtmob.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
)