from django.conf.urls import * from markupwiki.feeds import LatestEditsFeed, LatestArticleEditsFeed WIKI_REGEX = r'^(?P.+)' urlpatterns = patterns('markupwiki.views', url('^rss/$', LatestEditsFeed(), name='wiki_rss'), url(WIKI_REGEX + '/rss/$', LatestArticleEditsFeed(), name='article_rss'), url(WIKI_REGEX + '/edit/$', 'edit_article', name='edit_article'), url(WIKI_REGEX + '/update_status/$', 'article_status', name='update_article_status'), url(WIKI_REGEX + '/rename_article/$', 'rename', name='rename_article'), url(WIKI_REGEX + '/history/$', 'article_history', name='article_history'), url(WIKI_REGEX + '/history/(?P<n>\d+)/$', 'view_article', name='article_version'), url(WIKI_REGEX + '/diff/$', 'article_diff', name='article_diff'), url(WIKI_REGEX + '/revert/$', 'revert', name='revert'), url(WIKI_REGEX + '/$', 'view_article', name='view_article'), )