from django.conf.urls import patterns, include, url
from django.contrib import admin
from p4l.views import RecordListView, RecordDetailView, RecordEditView

admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    url(r'^$', RecordListView.as_view(), name='p4l_home'),
    url(r'^record/view$', RecordDetailView.as_view(), name='p4l_record_view'),
    url(r'^record/edit/(?P<id>\w+)$', RecordEditView.as_view(), name='p4l_record_edit'),
    url(r'^api/', include('p4l.api.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    url(r'^admin/', include(admin.site.urls)),
    
)