| author | ymh <ymh.work@gmail.com> |
| Wed, 04 Sep 2013 15:18:22 +0200 | |
| changeset 33 | 945b144d68c1 |
| parent 30 | a84e31f1f223 |
| child 35 | 544bc92e6fe7 |
| 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)), |
| 30 | 11 |
url(r'^record/view/(?P<slug>\w+)$', 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 |
) |