X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..87bd94a94dc6cc3dbf47db2bdd17761b3f400138:/src/wiki/urls.py diff --git a/src/wiki/urls.py b/src/wiki/urls.py index 0c73aed9..002bdb69 100644 --- a/src/wiki/urls.py +++ b/src/wiki/urls.py @@ -1,31 +1,30 @@ -# -*- coding: utf-8 -from django.conf.urls import patterns, url - - -urlpatterns = patterns('wiki.views', - url(r'^edit/(?P[^/]+)/(?:(?P[^/]+)/)?$', - 'editor', name="wiki_editor"), - - url(r'^readonly/(?P[^/]+)/(?:(?P[^/]+)/)?$', - 'editor_readonly', name="wiki_editor_readonly"), - - url(r'^gallery/(?P[^/]+)/$', - 'gallery', name="wiki_gallery"), - - url(r'^history/(?P\d+)/$', - 'history', name="wiki_history"), - - url(r'^rev/(?P\d+)/$', - 'revision', name="wiki_revision"), - - url(r'^text/(?P\d+)/$', - 'text', name="wiki_text"), - - url(r'^revert/(?P\d+)/$', - 'revert', name='wiki_revert'), - - url(r'^diff/(?P\d+)/$', 'diff', name="wiki_diff"), - url(r'^pubmark/(?P\d+)/$', 'pubmark', name="wiki_pubmark"), - - url(r'^themes$', 'themes', name="themes"), -) +# 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 = [ + path('edit///', views.editor, name="wiki_editor"), + path('edit//', views.editor, name="wiki_editor"), + + path('readonly///', + views.editor_readonly, name="wiki_editor_readonly"), + path('readonly//', + views.editor_readonly, name="wiki_editor_readonly"), + + path('gallery//', views.gallery, name="wiki_gallery"), + path('history//', views.history, name="wiki_history"), + path('rev//', views.revision, name="wiki_revision"), + path('text//', views.text, name="wiki_text"), + path('revert//', views.revert, name='wiki_revert'), + path('diff//', views.diff, name="wiki_diff"), + path('pubmark//', views.pubmark, name="wiki_pubmark"), + path('galleries/', views.galleries), + path('set-gallery//', views.set_gallery), + path('set-gallery-start//', views.set_gallery_start), + path('themes', views.themes, name="themes"), + path('back/', views.back), + path('editor-user-area/', views.editor_user_area), +]