X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..15dec706694c3afc006713be0fabb4973a6c2946:/src/wiki_img/urls.py diff --git a/src/wiki_img/urls.py b/src/wiki_img/urls.py index 6a516f36..1bf14b8e 100644 --- a/src/wiki_img/urls.py +++ b/src/wiki_img/urls.py @@ -1,24 +1,24 @@ # -*- coding: utf-8 -from django.conf.urls import patterns, url +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"), +]