- url(r'^$',
- 'document_list', name='wiki_doclist'),
- url(r'^gallery/(?P<directory>[^/]+)$',
- 'document_gallery', name="wiki_gallery"),
+ url(r'^$', redirect_to, {'url': 'catalogue/'}),
+
+ url(r'^catalogue/$', 'document_list', name='wiki_document_list'),
+ url(r'^catalogue/([^/]+)/$', 'document_list'),
+ url(r'^catalogue/([^/]+)/([^/]+)/$', 'document_list'),
+ url(r'^catalogue/([^/]+)/([^/]+)/([^/]+)$', 'document_list'),
+
+ url(r'^(?P<name>%s)$' % PART,
+ 'editor', name="wiki_editor"),
+
+ url(r'^(?P<name>[^/]+)/readonly$',
+ 'editor_readonly', name="wiki_editor_readonly"),
+
+ url(r'^create/(?P<name>[^/]+)',
+ 'create_missing', name='wiki_create_missing'),
+
+ url(r'^(?P<directory>[^/]+)/gallery$',
+ 'gallery', name="wiki_gallery"),
+