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