Question

This below command errors generates when i run my program with this command python manage.py runserver

/usr/local/lib/python2.7/dist-packages/cms/context_processors.py:20: DeprecationWarning:

cms.context_processors.media has been deprecated in favor of 

cms.context_processors.cms_settings. Please update your configuration
          'configuration', DeprecationWarning)

How to solve this error?

Was it helpful?

Solution

Follow instructions provided here http://django-cms.readthedocs.org/en/latest/upgrade/3.0.html#cms-context-processors-media .

Your project probably has settings.py file which contains TEMPLATE_CONTEXT_PROCESSORS variable (a list of content processors). This list contains "cms.context_processors.media", it should be replaced with "cms.context_processors.cms_settings".

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top