8000 Update install documentation to use re_path (#6613) · django-cms/django-cms@0e5b211 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e5b211

Browse files
mobilepatternbplociennik
authored andcommitted
Update install documentation to use re_path (#6613)
* Update install documentation to use re_path The example with url(...) no longer works. The correct syntax is re_path(...). * Changed documentation to based on feedback from Bartosz Płóciennik The change to use re_path is only necessary when using Django 2.0. Reverted the change and added a note for Django 2.0 users.
1 parent dc9ac2b commit 0e5b211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/how_to/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ URLs
254254
====
255255

256256
In the project's ``urls.py``, add ``url(r'^', include('cms.urls'))`` to the ``urlpatterns`` list. It should come after
257-
other patterns, so that specific URLs for other applications can be detected first.
257+
other patterns, so that specific URLs for other applications can be detected first. Note: when using Django 2.0 or later the syntax is ``re_path(r'^', include('cms.urls'))``
258258

259259
You'll also need to have an import for ``django.conf.urls.include``. For example:
260260

0 commit comments

Comments
 (0)
0