from django.conf.urls import url from documents.views import (DocumentList, DocumentCreate, DocumentDetail, DocumentEdit, DocumentDownload, DocumentRedirect, DocumentRevise, DocumentDelete, DocumentRevisionDelete, RevisionFileDownload, DocumentFileDownload) urlpatterns = [ # Document short url url(r'^documents/(?P<document_key>[\w-]+)/$', DocumentRedirect.as_view(), name='document_short_url'), # Downloads url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/download/$', DocumentDownload.as_view(), name="document_download"), # Documents url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/$', DocumentList.as_view(), name="category_document_list"), url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/create/$', DocumentCreate.as_view(), name="document_create"), url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/(?P<document_key>[\w-]+)/$', DocumentDetail.as_view(), name="document_detail"), url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/(?P<document_key>[\w-]+)/edit/$',
from django.conf.urls import url from documents.views import ( DocumentList, DocumentCreate, DocumentDetail, DocumentEdit, DocumentDownload, DocumentRedirect, DocumentRevise, DocumentDelete, DocumentRevisionDelete, RevisionFileDownload, DocumentFileDownload ) urlpatterns = [ # Document short url url(r'^documents/(?P<document_key>[\w-]+)/$', DocumentRedirect.as_view(), name='document_short_url'), # Downloads url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/download/$', DocumentDownload.as_view(), name="document_download"), # Documents url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/$', DocumentList.as_view(), name="category_document_list"), url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/create/$', DocumentCreate.as_view(), name="document_create"), url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/(?P<document_key>[\w-]+)/$', DocumentDetail.as_view(), name="document_detail"), url(r'^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/(?P<document_key>[\w-]+)/edit/$',
from documents.views import ( DocumentList, DocumentCreate, DocumentDetail, DocumentEdit, DocumentDownload, DocumentRedirect, DocumentRevise, DocumentDelete, ) urlpatterns = patterns( "", # Document short url url(r"^documents/(?P<document_key>[\w-]+)/$", DocumentRedirect.as_view(), name="document_short_url"), # Downloads url( r"^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/download/$", DocumentDownload.as_view(), name="document_download", ), # Documents url(r"^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/$", DocumentList.as_view(), name="category_document_list"), url(r"^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/create/$", DocumentCreate.as_view(), name="document_create"), url( r"^(?P<organisation>[\w-]+)/(?P<category>[\w-]+)/(?P<document_key>[\w-]+)/$", DocumentDetail.as_view(), name="document_detail", ), url(