Skip to content

Commit e7268cb

Browse files
authored
docs(introduction): updated "Adding django CMS to an existing Django project" section to make it work in copy-paste (#8206)
1 parent f7cd851 commit e7268cb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/introduction/01-install.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ Also add:
466466

467467
.. code-block::
468468
469-
"django:django.middleware.locale.LocaleMiddleware", # not installed by default
469+
"django.middleware.locale.LocaleMiddleware", # not installed by default
470470
471471
"cms.middleware.user.CurrentUserMiddleware",
472472
"cms.middleware.page.CurrentPageMiddleware",
@@ -503,7 +503,7 @@ URLs
503503
~~~~
504504

505505
In the project's ``urls.py``, add ``path("", include("cms.urls"))`` to the
506-
``urlpatterns`` list, preferably as ``i18patterns``. It should come after other
506+
``urlpatterns`` list, preferably as ``i18n_patterns``. It should come after other
507507
patterns, so that specific URLs for other applications can be detected first.
508508

509509
You'll also need to have an import for ``django.urls.include``. For example:
@@ -514,7 +514,7 @@ You'll also need to have an import for ``django.urls.include``. For example:
514514
from django.conf.urls.i18n import i18n_patterns
515515
from django.urls import include, path
516516
517-
urlpatterns = i18patterns(
517+
urlpatterns = i18n_patterns(
518518
path("admin/", admin.site.urls),
519519
path("", include("cms.urls")),
520520
)
@@ -783,8 +783,9 @@ Install: ``pip install djangocms-frontend`` and it and its subpackages to
783783
784784
INSTALLED_APPS = [
785785
...,
786-
"easy_thumbnails',
787-
"djangocms_frontend',
786+
"easy_thumbnails",
787+
"djangocms_frontend",
788+
"djangocms_link",
788789
"djangocms_frontend.contrib.accordion",
789790
"djangocms_frontend.contrib.alert",
790791
"djangocms_frontend.contrib.badge",

0 commit comments

Comments
 (0)