Skip to content

Commit

Permalink
improved sekizai upgrade documentation, thanks to DDevine for pointin…
Browse files Browse the repository at this point in the history
…g it out
  • Loading branch information
Jonas Obrist committed Mar 16, 2011
1 parent da23502 commit ee92385
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting_started/tutorial.rst
Expand Up @@ -124,7 +124,6 @@ right position::
'cms.middleware.page.CurrentPageMiddleware',
'cms.middleware.user.CurrentUserMiddleware',
'cms.middleware.toolbar.ToolbarMiddleware',
'cms.middleware.media.PlaceholderMediaMiddleware',
)

You need at least the following ``TEMPLATE_CONTEXT_PROCESSORS`` (a default Django
Expand All @@ -136,6 +135,7 @@ settings file will not have any)::
'django.core.context_processors.request',
'django.core.context_processors.media',
'cms.context_processors.media',
'sekizai.context_processors.sekizai',
)

Almost there!
Expand Down
5 changes: 5 additions & 0 deletions docs/upgrade/2.2.rst
Expand Up @@ -39,6 +39,11 @@ Accessing :attr:`cms.plugins_base.CMSPluginBase.pluginmedia` or
:meth:`cms.plugins_base.CMSPluginBase.get_plugin_media` will raise a
:exc:`cms.exceptions.Deprecated` exception.

The :class:`cms.middleware.media.PlaceholderMediaMiddleware` middleware was also
removed in this process and is therefore no longer required, however you now
require to have the ``'sekizai.context_processors.sekizai'`` context processor
in your ``TEMPLATE_CONTEXT_PROCESSORS`` setting.

All templates in ``CMS_TEMPLATES`` must contain at least the ``js`` and ``css``
sekizai namespaces.

Expand Down

0 comments on commit ee92385

Please sign in to comment.