10000 Update install documentation to use re_path by mobilepattern · Pull Request #6613 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

Update install documentation to use re_path #6613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 11, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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.
  • Loading branch information
mobilepattern authored Mar 10, 2019
commit dc6afbf53cf075abeec7c35ff48e3f92bc540777
4 changes: 2 additions & 2 deletions docs/how_to/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ Further required configuration
URLs
====

In the project's ``urls.py``, add ``re_path(r'^', include('cms.urls'))`` to the ``urlpatterns`` list. It should come after
other patterns, so that specific URLs for other applications can be detected first.
In the project's ``urls.py``, add ``url(r'^', include('cms.urls'))`` to the ``urlpatterns`` list. It should come after
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'))``

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

Expand Down
0