Source

superwiki / superwiki / urls.py

Full commit
# -*- coding: utf-8 -*-

from django.conf.urls.defaults import *

import views
from common import URL_R


urlpatterns = patterns('',
    url('^:index$', views.index, name='wiki-index'),
    url('^(?P<url>%s)$' % URL_R, views.show, name='wiki-show'),
    url('^(?P<url>%s):edit$' % URL_R, views.edit, name='wiki-edit'),
    url('^(?P<url>%s):create$' % URL_R, views.create, name='wiki-create'),
    url('^(?P<url>%s):delete$' % URL_R, views.delete, name='wiki-delete'),
    url('^(?P<url>%s):history$' % URL_R, views.history, name='wiki-history'),
    url('^(?P<url>%s):diff:(?P<ver>\d+)$' % URL_R, views.diff, name='wiki-diff'),
    url('^(?P<url>%s):diff:(?P<ver>\d+):(?P<ver_b>\d+)$' % URL_R, views.diff, name='wiki-diff2'),
)