Django CMS 2.3.x Documentation
attributes or methods will raise a cms.exceptions.Deprecated error. The cms.middleware.media.PlaceholderMediaMiddleware middleware was also removed in this process and is therefore no longer required. However must be enabled explicitly in templates The toolbar no longer hacks itself into responses in the middleware, but rather has to be enabled explicitly using the {% cms_toolbar %} template tag from the cms_tags context_processors.static sekizai.context_processors.sekizai Remove the following from MIDDLEWARE_CLASSES: cms.middleware.media.PlaceholderMediaMiddleware Remove the following from INSTALLED_APPS: publisher0 码力 | 92 页 | 666.41 KB | 6 月前3Django CMS 2.2.x Documentation
attribtues or methods will raise a cms.exceptions.Deprecated error. The cms.middleware.media.PlaceholderMediaMiddleware middleware was also removed in this process and is therefore no longer required, however must be enabled explicitly in templates The toolbar no longer hacks itself into responses in the middleware, but rather has to be enabled explictely using the {% cms_toolbar %} template tag from the cms_tags to your MIDDLEWARE_CLASSES at the right position: MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'0 码力 | 76 页 | 627.98 KB | 6 月前3Django CMS 3.0.x Documentation
django CMS middlewares to your MIDDLEWARE_CLASSES at the right position: MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.doc.XViewMiddleware', 'django 'django.middleware.common.CommonMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language0 码力 | 180 页 | 1.56 MB | 6 月前3Django CMS 2.4.x Documentation
com/brocaar/django-i18nurls What you need to do: Remove cms.middleware.multilingual.MultilingualURLMiddleware from your settings. Be sure django.middleware.locale.LocaleMiddleware is in your settings, and that / on a page, this middleware saves the current language in a cookie with every response. To enable this middleware add the following to your MIDDLEWARE_CLASSES setting: cms.middleware.language.LanguageCookieMiddleware attributes or methods will raise a cms.exceptions.Deprecated error. The cms.middleware.media.PlaceholderMediaMiddleware middleware was also removed in this process and is therefore no longer required. However0 码力 | 156 页 | 727.78 KB | 6 月前3Django CMS 2.4.x Documentation
com/brocaar/django-i18nurls What you need to do: • Remove cms.middleware.multilingual.MultilingualURLMiddleware from your set- tings. • Be sure django.middleware.locale.LocaleMiddleware is in your settings, and that / on a page, this middleware saves the current language in a cookie with every response. To enable this middleware add the following to your MIDDLEWARE_CLASSES setting: cms.middleware.language.LanguageCookieMiddleware attributes or methods will raise a cms.exceptions.Deprecated error. The cms.middleware.media.PlaceholderMediaMiddleware middleware was also removed in this process and is therefore no longer required. However0 码力 | 104 页 | 709.98 KB | 6 月前3Django CMS 3.9.x Documentation
], }, }, ] Middleware in your MIDDLEWARE [https://docs.djangoproject.com/en/2.2/ref/settings/#std:setting-MIDDLEWARE] you’ll need django.middleware.locale.LocaleMiddleware [https://docs com/en/2.2/ref/middleware/#django.middleware.locale.LocaleMiddleware] - it’s not installed in Django projects by default. Also add: 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware' CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware', to the list. You can also add 'cms.middleware.utils.ApphookReloadMiddleware'. It’s0 码力 | 417 页 | 1.68 MB | 6 月前3Django CMS 3.8.x Documentation
], }, }, ] Middleware in your MIDDLEWARE [https://docs.djangoproject.com/en/2.2/ref/settings/#std:setting-MIDDLEWARE] you’ll need django.middleware.locale.LocaleMiddleware [https://docs com/en/2.2/ref/middleware/#django.middleware.locale.LocaleMiddleware] - it’s not installed in Django projects by default. Also add: 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware' CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware', to the list. You can also add 'cms.middleware.utils.ApphookReloadMiddleware'. It’s0 码力 | 413 页 | 1.67 MB | 6 月前3Django CMS 3.11.10 Documentation
template.context_processors.i18n", Middleware in your MIDDLEWARE [https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-MIDDLEWARE] you’ll need django.middleware.locale.LocaleMiddleware [https://docs djangoproject.com/en/4.2/ref/middleware/#django.middleware.locale.LocaleMiddleware] - it’s not installed in Django projects by default. Also add: to the list. You can also add 'cms.middleware.utils.ApphookReloadMiddleware' "django:django.middleware.locale.LocaleMiddleware", # not installed by default "cms.middleware.user.CurrentUserMiddleware", "cms.middleware.page.CurrentPageMiddleware", "cms.middleware.toolbar.ToolbarMiddleware"0 码力 | 493 页 | 1.44 MB | 6 月前0.03Django CMS 4.0.x Documentation
sekizai', ], }, }, ] Middleware in your MIDDLEWARE you’ll need django.middleware.locale.LocaleMiddleware - it’s not installed in Django projects by default. Also add: 'cms.middleware.user.CurrentUserMiddleware' e', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware', to the list. You can also add 'cms.middleware.utils.App sessions, it must be stored in a cookie. To enable this, cms.middleware.language. LanguageCookieMiddleware must be added to the project’s MIDDLEWARE setting. See How django CMS determines which language to0 码力 | 296 页 | 1.79 MB | 6 月前3Django CMS 3.9.x Documentation
Documentation, Release 3.10.0 Middleware in your MIDDLEWARE you’ll need django.middleware.locale.LocaleMiddleware - it’s not installed in Django projects by default. Also add: 'cms.middleware.user.CurrentUserMiddleware' e', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware', to the list. You can also add 'cms.middleware.utils.App sessions, it must be stored in a cookie. To enable this, cms.middleware.language. LanguageCookieMiddleware must be added to the project’s MIDDLEWARE setting. See How django CMS determines which language to0 码力 | 298 页 | 1.79 MB | 6 月前3
共 32 条
- 1
- 2
- 3
- 4