src/p4l/urls.py
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--
first version of angular intégration
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
81e7900b06a7 First import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
from django.conf.urls import patterns, include, url
16
19fe06edb58d Add api for records
ymh <ymh.work@gmail.com>
parents: 7
diff changeset
     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
81e7900b06a7 First import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
81e7900b06a7 First import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
admin.autodiscover()
81e7900b06a7 First import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
81e7900b06a7 First import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
urlpatterns = patterns('',
81e7900b06a7 First import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
    # Examples:
1
d184767fdd52 first list view
cavaliet
parents: 0
diff changeset
     9
    url(r'^$', RecordListView.as_view(), name='p4l_home'),
7
02008d61c3c8 record view + correct import
cavaliet
parents: 1
diff changeset
    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
19fe06edb58d Add api for records
ymh <ymh.work@gmail.com>
parents: 7
diff changeset
    12
    url(r'^api/', include('p4l.api.urls')),
0
81e7900b06a7 First import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
81e7900b06a7 First import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    # Uncomment the admin/doc line below to enable admin documentation:
81e7900b06a7 First import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
81e7900b06a7 First import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
81e7900b06a7 First import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
    url(r'^admin/', include(admin.site.urls)),
16
19fe06edb58d Add api for records
ymh <ymh.work@gmail.com>
parents: 7
diff changeset
    18
    
1
d184767fdd52 first list view
cavaliet
parents: 0
diff changeset
    19
)