Upgrading from 2.1.x and Django 1.2.x

    If you are using django-reversion make sure to have at least version 1.4 installed

    1. pip install --upgrade django-reversion==1.4

    Also, make sure that django-mptt stays at a version compatible with django CMS

    1. pip install --upgrade django-mptt==0.5.1

    The following changes will need to be made in your settings.py file:

    1. STATIC_ROOT = os.path.join(PROJECT_PATH, 'static')
    2. STATIC_URL = "/static/"

    Note

    These are not django CMS settings. Refer to the Django documentation on staticfiles for more information.

    Note

    Note

    PROJECT_PATH is the absolute path to your project.

    Remove the following from TEMPLATE_CONTEXT_PROCESSORS:

    Add the following to :

    Remove the following from :

    1. cms.middleware.media.PlaceholderMediaMiddleware
    1. publisher

    Add the following to INSTALLED_APPS:

    1. sekizai
    2. django.contrib.staticfiles

    Make sure to add sekizai tags and cms_toolbar to your CMS templates.

    Note

    cms_toolbar is only needed if you wish to use the front-end editing. See for more information

    Here is a simple example for a base template called :

    Run the following commands to upgrade your database

    1. python manage.py syncdb
    1. if settings.DEBUG:
    2. urlpatterns = patterns('',
    3. url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
    4. {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
    5. url(r'', include('django.contrib.staticfiles.urls')),
    6. ) + urlpatterns

    Also run this command to collect static files into your :

    1. python manage.py collectstatic