X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/c48ff2d3e64065793c24cfb8ae151f02b8e6646a..fd28890ac78d5869ac68ec6db7183bc168d03891:/src/wiki/urls.py?ds=inline diff --git a/src/wiki/urls.py b/src/wiki/urls.py index ddc0dfcb..9940dc8d 100644 --- a/src/wiki/urls.py +++ b/src/wiki/urls.py @@ -1,34 +1,31 @@ # 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 django.urls import path from . import views urlpatterns = [ - url(r'^edit/(?P[^/]+)/(?:(?P[^/]+)/)?$', - views.editor, name="wiki_editor"), - - url(r'^readonly/(?P[^/]+)/(?:(?P[^/]+)/)?$', - views.editor_readonly, name="wiki_editor_readonly"), - - url(r'^gallery/(?P[^/]+)/$', - views.gallery, name="wiki_gallery"), - - url(r'^history/(?P\d+)/$', - views.history, name="wiki_history"), - - url(r'^rev/(?P\d+)/$', - views.revision, name="wiki_revision"), - - url(r'^text/(?P\d+)/$', - views.text, name="wiki_text"), - - url(r'^revert/(?P\d+)/$', - views.revert, name='wiki_revert'), - - url(r'^diff/(?P\d+)/$', views.diff, name="wiki_diff"), - url(r'^pubmark/(?P\d+)/$', views.pubmark, name="wiki_pubmark"), - - url(r'^themes$', views.themes, name="themes"), + 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('scans//', views.scans_list, name="wiki_scans"), + 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), ]