from django.conf.urls import patterns, url from django.views.generic import TemplateView urlpatterns = patterns('gnowsys_ndf.ndf.views.file', url(r'^$', 'file', name='file'), url(r'^/$', 'file', name='file'), # url(r'^/(?P[\w-]+)$', 'file', name='file'), url(r'^/uploadDoc/$', 'uploadDoc', name='uploadDoc'), #Direct ot html template url(r'^/submitDoc/', 'submitDoc', name='submitDoc'), url(r'^/submit/', 'submitDoc', name='submitDoc'), url(r'^/documentList/', 'GetDoc', name='documentList'), url(r'^/readDoc/(?P<_id>[\w-]+)/(?:(?P[^/]+))?$', 'readDoc', name='read_file'), url(r'^/search/$', 'file_search', name='file_search'), url(r'^/details/(?P<_id>[\w-]+)$', 'file_detail', name='file_detail'), url(r'^/(?P<_id>[\w-]+)$', 'file_detail', name='file_detail'), url(r'^/thumbnail/(?P<_id>[\w-]+)$', 'getFileThumbnail', name='getFileThumbnail'), #url(r'^/delete_file/(?P<_id>[\w-]+)$', 'delete_file', name='delete_file'), url(r'^/delete/(?P<_id>[\w-]+)$', 'delete_file', name='delete_file'), url(r'^/edit_file/(?P<_id>[\w-]+)$', 'file_edit', name='file_edit'), url(r'^/edit/(?P<_id>[\w-]+)$', 'file_edit', name='file_edit'), )