| author | ymh <ymh.work@gmail.com> |
| Wed, 04 Sep 2013 10:01:38 +0200 | |
| changeset 26 | a0e152dd1fad |
| parent 16 | 19fe06edb58d |
| child 27 | d2a40f44cbb9 |
| permissions | -rw-r--r-- |
| 0 | 1 |
from django.conf.urls import patterns, include, url |
| 16 | 2 |
from django.contrib import admin |
|
26
a0e152dd1fad
first version of angular intégration
ymh <ymh.work@gmail.com>
parents:
16
diff
changeset
|
3 |
from p4l.views import RecordListView, RecordDetailView, RecordEditView |
| 0 | 4 |
|
5 |
admin.autodiscover() |
|
6 |
||
7 |
urlpatterns = patterns('', |
|
8 |
# Examples: |
|
| 1 | 9 |
url(r'^$', RecordListView.as_view(), name='p4l_home'), |
| 7 | 10 |
url(r'^record/view$', RecordDetailView.as_view(), name='p4l_record_view'), |
|
26
a0e152dd1fad
first version of angular intégration
ymh <ymh.work@gmail.com>
parents:
16
diff
changeset
|
11 |
url(r'^record/edit/(?P<id>\w+)$', RecordEditView.as_view(), name='p4l_record_edit'), |
| 16 | 12 |
url(r'^api/', include('p4l.api.urls')), |
| 0 | 13 |
|
14 |
# Uncomment the admin/doc line below to enable admin documentation: |
|
15 |
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
16 |
||
17 |
url(r'^admin/', include(admin.site.urls)), |
|
| 16 | 18 |
|
| 1 | 19 |
) |