2 from django.conf.urls import patterns, url
5 urlpatterns = patterns('wiki.views',
6 url(r'^edit/(?P<pk>[^/]+)/$',
7 'editor', name="wiki_editor"),
9 url(r'^readonly/(?P<pk>[^/]+)/$',
10 'editor_readonly', name="wiki_editor_readonly"),
12 url(r'^gallery/(?P<directory>[^/]+)/$',
13 'gallery', name="wiki_gallery"),
15 url(r'^history/(?P<doc_id>\d+)/$',
16 'history', name="wiki_history"),
18 url(r'^rev/(?P<chunk_id>\d+)/$',
19 'revision', name="wiki_revision"),
21 url(r'^text/(?P<doc_id>\d+)/$',
22 'text', name="wiki_text"),
24 url(r'^revert/(?P<doc_id>\d+)/$',
25 'revert', name='wiki_revert'),
27 url(r'^diff/(?P<doc_id>\d+)/$', 'diff', name="wiki_diff"),