calebasse / calebasse / actes / urls.py @ d3eeac81
1 |
from django.conf.urls import patterns, url, include |
---|---|
2 |
from calebasse.actes.views import update_act, rebill_act |
3 |
|
4 |
act_patterns = patterns('calebasse.actes.views', |
5 |
url(r'^$', 'act_listing', name='act-listing'), |
6 |
url(r'^act-new/$', 'act_new', name='act-new'), |
7 |
url(r'^(?P<pk>\d+)/update$', update_act), |
8 |
url(r'^(?P<pk>\d+)/rebill', rebill_act), |
9 |
)
|
10 |
|
11 |
urlpatterns = patterns('calebasse.actes.views', |
12 |
url(r'^$', 'redirect_today'), |
13 |
url(r'^(?P<date>[^/]*)/', include(act_patterns)) |
14 |
)
|