mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-03 21:14:46 +00:00
Update wagtail url paths for Django 2.0
This commit is contained in:
parent
55580d96e8
commit
2b240ad82f
1 changed files with 5 additions and 3 deletions
|
|
@ -63,15 +63,17 @@ Now make the following additions to your ``urls.py`` file:
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
from django.urls import path, re_path, include
|
||||
|
||||
from wagtail.admin import urls as wagtailadmin_urls
|
||||
from wagtail.documents import urls as wagtaildocs_urls
|
||||
from wagtail.core import urls as wagtail_urls
|
||||
|
||||
urlpatterns = [
|
||||
...
|
||||
url(r'^cms/', include(wagtailadmin_urls)),
|
||||
url(r'^documents/', include(wagtaildocs_urls)),
|
||||
url(r'^pages/', include(wagtail_urls)),
|
||||
re_path(r'^cms/', include(wagtailadmin_urls)),
|
||||
re_path(r'^documents/', include(wagtaildocs_urls)),
|
||||
re_path(r'^pages/', include(wagtail_urls)),
|
||||
...
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue