diff options
Diffstat (limited to 'bn_django/git_wiki/urls.py')
-rw-r--r-- | bn_django/git_wiki/urls.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/bn_django/git_wiki/urls.py b/bn_django/git_wiki/urls.py new file mode 100644 index 0000000..98cedc4 --- /dev/null +++ b/bn_django/git_wiki/urls.py @@ -0,0 +1,26 @@ +from django.conf.urls.defaults import * +from django.conf import settings + +from models import * + +try: + GITWIKI_BASE = settings.GITWIKI_BASE +except AttributeError: + GITWIKI_BASE='/home/usr/doc/' + +try: + ADMIN_URL = settings.ADMIN_URL +except AttributeError: + ADMIN_URL='/admin' +if ADMIN_URL[-1] == '/': + ADMIN_URL=ADMIN_URL[:-1] + +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',) +) |