aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_wiki/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/git_wiki/urls.py')
-rw-r--r--bn_django/git_wiki/urls.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bn_django/git_wiki/urls.py b/bn_django/git_wiki/urls.py
index d765aea..0cd2031 100644
--- a/bn_django/git_wiki/urls.py
+++ b/bn_django/git_wiki/urls.py
@@ -15,7 +15,9 @@ info_dict = { 'extra_context': { 'admin_url': ADMIN_URL,
urlpatterns = patterns('bn_django.git_wiki.views',
(r'^(?P<hash>[0-9a-z]{40})/$', 'olditem',),
- (r'^(?P<req>.+)/$', 'item',),
- (r'^(?P<req>.+)/log/$', 'item',),
- (r'^(?P<req>.+)/edit/$', 'item',)
+ (r'^commit/(?P<hash>[0-9a-z]{40})/$', 'view_commit',),
+ (r'^(?P<reqslug>[\w\-\_\/]*)/log/$', 'tree',),
+ (r'^(?P<reqslug>[\w\-\_\/]*)/edit/$', 'tree',),
+ (r'^(?P<reqslug>[\w\-\_\/]*)/pdf/$', 'tree',),
+ (r'^(?P<reqslug>[\w\-\_\/]*)$', 'tree',),
)