url(r'^gallery/(?P<directory>[^/]+)/$',
'gallery', name="wiki_gallery"),
url(r'^history/(?P<doc_id>\d+)/$',
'history', name="wiki_history"),
url(r'^gallery/(?P<directory>[^/]+)/$',
'gallery', name="wiki_gallery"),
url(r'^history/(?P<doc_id>\d+)/$',
'history', name="wiki_history"),