X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..864d45abe5ec985836baf52de168943d25a03be6:/src/wiki/urls.py diff --git a/src/wiki/urls.py b/src/wiki/urls.py index 0c73aed9..eb70ffe6 100644 --- a/src/wiki/urls.py +++ b/src/wiki/urls.py @@ -1,31 +1,32 @@ # -*- coding: utf-8 -from django.conf.urls import patterns, url +from django.conf.urls import url +from . import views -urlpatterns = patterns('wiki.views', +urlpatterns = [ url(r'^edit/(?P[^/]+)/(?:(?P[^/]+)/)?$', - 'editor', name="wiki_editor"), + views.editor, name="wiki_editor"), url(r'^readonly/(?P[^/]+)/(?:(?P[^/]+)/)?$', - 'editor_readonly', name="wiki_editor_readonly"), + views.editor_readonly, name="wiki_editor_readonly"), url(r'^gallery/(?P[^/]+)/$', - 'gallery', name="wiki_gallery"), + views.gallery, name="wiki_gallery"), url(r'^history/(?P\d+)/$', - 'history', name="wiki_history"), + views.history, name="wiki_history"), url(r'^rev/(?P\d+)/$', - 'revision', name="wiki_revision"), + views.revision, name="wiki_revision"), url(r'^text/(?P\d+)/$', - 'text', name="wiki_text"), + views.text, name="wiki_text"), url(r'^revert/(?P\d+)/$', - 'revert', name='wiki_revert'), + views.revert, name='wiki_revert'), - url(r'^diff/(?P\d+)/$', 'diff', name="wiki_diff"), - url(r'^pubmark/(?P\d+)/$', 'pubmark', name="wiki_pubmark"), + url(r'^diff/(?P\d+)/$', views.diff, name="wiki_diff"), + url(r'^pubmark/(?P\d+)/$', views.pubmark, name="wiki_pubmark"), - url(r'^themes$', 'themes', name="themes"), -) + url(r'^themes$', views.themes, name="themes"), +]