Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 33eafffdfa
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (15 sloc) 0.659 kb
from django.conf.urls.defaults import patterns, url
from documents.models import Document
info_dict = {
'queryset': Document.objects.all(),
}
urlpatterns = patterns('documents.views',
(r'^$','documents'),
(r'^(?P<docid>\d+)$', 'documentdetail'),
(r'^upload/(?P<mapid>\d+)/?$', 'upload_document'),
url(r'^upload/?$', 'upload_document', name='document-upload'),
(r'^newmap$', 'newmaptpl'),
url(r'^search/?$', 'documents_search_page', name='documents_search'),
url(r'^search/api/?$', 'documents_search', name='documents_search_api'),
url(r'^(?P<docid>\d+)/ajax-permissions$', 'ajax_document_permissions', name='ajax_document_permissions'),
)
Jump to Line
Something went wrong with that request. Please try again.