X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..2dd4071b8858c9727ee3e2c09b73b1eadef6e31e:/src/wiki_img/urls.py diff --git a/src/wiki_img/urls.py b/src/wiki_img/urls.py index 6a516f36..0c9e8482 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.urls import path +from . import views -urlpatterns = patterns('wiki_img.views', - url(r'^edit/(?P[^/]+)/$', - 'editor', name="wiki_img_editor"), +urlpatterns = [ + path('edit//', + views.editor, name="wiki_img_editor"), - url(r'^readonly/(?P[^/]+)/$', - 'editor_readonly', name="wiki_img_editor_readonly"), + path('readonly//', + views.editor_readonly, name="wiki_img_editor_readonly"), - url(r'^text/(?P\d+)/$', - 'text', name="wiki_img_text"), + path('text//', + views.text, name="wiki_img_text"), - url(r'^history/(?P\d+)/$', - 'history', name="wiki_img_history"), + path('history//', + views.history, name="wiki_img_history"), - url(r'^revert/(?P\d+)/$', - 'revert', name='wiki_img_revert'), + path('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"), - -) + path('diff//', views.diff, name="wiki_img_diff"), + path('pubmark//', views.pubmark, name="wiki_img_pubmark"), +]