kopia lustrzana https://github.com/wagtail/wagtail
Eliminate 'patterns' from wagtaildocs/urls.py and admin_urls.py as per https://code.djangoproject.com/ticket/22218
rodzic
cea72bcc34
commit
e271881156
|
@ -1,14 +1,14 @@
|
|||
from django.conf.urls import patterns, url
|
||||
from django.conf.urls import url
|
||||
from wagtail.wagtaildocs.views import documents, chooser
|
||||
|
||||
|
||||
urlpatterns = patterns(
|
||||
'wagtail.wagtaildocs.views',
|
||||
url(r'^$', 'documents.index', name='wagtaildocs_index'),
|
||||
url(r'^add/$', 'documents.add', name='wagtaildocs_add_document'),
|
||||
url(r'^edit/(\d+)/$', 'documents.edit', name='wagtaildocs_edit_document'),
|
||||
url(r'^delete/(\d+)/$', 'documents.delete', name='wagtaildocs_delete_document'),
|
||||
urlpatterns = [
|
||||
url(r'^$', documents.index, name='wagtaildocs_index'),
|
||||
url(r'^add/$', documents.add, name='wagtaildocs_add_document'),
|
||||
url(r'^edit/(\d+)/$', documents.edit, name='wagtaildocs_edit_document'),
|
||||
url(r'^delete/(\d+)/$', documents.delete, name='wagtaildocs_delete_document'),
|
||||
|
||||
url(r'^chooser/$', 'chooser.chooser', name='wagtaildocs_chooser'),
|
||||
url(r'^chooser/(\d+)/$', 'chooser.document_chosen', name='wagtaildocs_document_chosen'),
|
||||
url(r'^chooser/upload/$', 'chooser.chooser_upload', name='wagtaildocs_chooser_upload'),
|
||||
)
|
||||
url(r'^chooser/$', chooser.chooser, name='wagtaildocs_chooser'),
|
||||
url(r'^chooser/(\d+)/$', chooser.document_chosen, name='wagtaildocs_document_chosen'),
|
||||
url(r'^chooser/upload/$', chooser.chooser_upload, name='wagtaildocs_chooser_upload'),
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from django.conf.urls import patterns, url
|
||||
from django.conf.urls import url
|
||||
from wagtail.wagtaildocs.views import serve
|
||||
|
||||
urlpatterns = patterns(
|
||||
'wagtail.wagtaildocs.views',
|
||||
url(r'^(\d+)/(.*)$', 'serve.serve', name='wagtaildocs_serve'),
|
||||
)
|
||||
urlpatterns = [
|
||||
url(r'^(\d+)/(.*)$', serve.serve, name='wagtaildocs_serve'),
|
||||
]
|
||||
|
|
Ładowanie…
Reference in New Issue