X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/31006b86a2e9883d8a4c5fe18128821b325773ab..3e85e1533d6109be1d5889fb98db7e3e07fedf72:/apps/wiki/urls.py diff --git a/apps/wiki/urls.py b/apps/wiki/urls.py index 69472103..40e1d502 100644 --- a/apps/wiki/urls.py +++ b/apps/wiki/urls.py @@ -1,23 +1,17 @@ # -*- coding: utf-8 -from django.conf.urls import patterns, url +from django.conf.urls import url +from wiki import views +urlpatterns = ( + url(r'^edit/(?P[^/]+)/$', views.editor, name="wiki_editor"), -urlpatterns = patterns( - 'wiki.views', - url(r'^edit/(?P[^/]+)/$', - 'editor', name="wiki_editor"), + url(r'^gallery/(?P[^/]+)/$', views.gallery, name="wiki_gallery"), - url(r'^gallery/(?P[^/]+)/$', - 'gallery', name="wiki_gallery"), + url(r'^history/(?P\d+)/$', views.history, name="wiki_history"), - url(r'^history/(?P\d+)/$', - 'history', name="wiki_history"), + url(r'^text/(?P\d+)/$', views.text, name="wiki_text"), - url(r'^text/(?P\d+)/$', - 'text', name="wiki_text"), + url(r'^revert/(?P\d+)/$', views.revert, name='wiki_revert'), - url(r'^revert/(?P\d+)/$', - 'revert', name='wiki_revert'), - - url(r'^diff/(?P\d+)/$', 'diff', name="wiki_diff"), + url(r'^diff/(?P\d+)/$', views.diff, name="wiki_diff"), )