X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..5085f47552e7c265a37f9fc0e5b3413154f902f0:/src/wiki_img/urls.py?ds=inline diff --git a/src/wiki_img/urls.py b/src/wiki_img/urls.py index 6a516f36..82244841 100644 --- a/src/wiki_img/urls.py +++ b/src/wiki_img/urls.py @@ -1,24 +1,26 @@ -# -*- coding: utf-8 -from django.conf.urls import patterns, url +# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# +from django.conf.urls import url +from . import views -urlpatterns = patterns('wiki_img.views', +urlpatterns = [ url(r'^edit/(?P[^/]+)/$', - 'editor', name="wiki_img_editor"), + views.editor, name="wiki_img_editor"), url(r'^readonly/(?P[^/]+)/$', - 'editor_readonly', name="wiki_img_editor_readonly"), + views.editor_readonly, name="wiki_img_editor_readonly"), url(r'^text/(?P\d+)/$', - 'text', name="wiki_img_text"), + views.text, name="wiki_img_text"), url(r'^history/(?P\d+)/$', - 'history', name="wiki_img_history"), + views.history, name="wiki_img_history"), url(r'^revert/(?P\d+)/$', - 'revert', name='wiki_img_revert'), + views.revert, name='wiki_img_revert'), - url(r'^diff/(?P\d+)/$', 'diff', name="wiki_img_diff"), - url(r'^pubmark/(?P\d+)/$', 'pubmark', name="wiki_img_pubmark"), - -) + url(r'^diff/(?P\d+)/$', views.diff, name="wiki_img_diff"), + url(r'^pubmark/(?P\d+)/$', views.pubmark, name="wiki_img_pubmark"), +]