from django.conf.urls.defaults import * from django.conf import settings from models import * 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[0-9a-z]{40})/$', 'olditem',), (r'^commit/(?P[0-9a-z]{40})/$', 'view_commit',), (r'^(?P[\w\-\_\/]*)/log/$', 'tree',), (r'^(?P[\w\-\_\/]*)/edit/$', 'tree',), (r'^(?P[\w\-\_\/]*)/pdf/$', 'tree',), (r'^(?P[\w\-\_\/]*)/raw/$', 'rawitem',), (r'^(?P[\w\-\_\/]*)/latex/$', 'latexitem',), (r'^(?P[\w\-\_\/]*\.png/?)$', 'figure',), (r'^(?P[\w\-\_\/]*\.gif/?)$', 'figure',), (r'^(?P[\w\-\_\/]*\.jpg/?)$', 'figure',), (r'^(?P[\w\-\_\/]*\.jpeg/?)$', 'figure',), (r'^(?P[\w\-\_\/]*)$', 'tree',), )