Issue #10 resolved

settings.RICHTEXT_FILTER gets deprecation warning, but pagedown crashes without it...

Rod Morison
created an issue
.../mezzanine/core/templatetags/mezzanine_tags.py:383: UserWarning: The `RICHTEXT_FILTER` setting is deprecated in favor of the new plural setting `RICHTEXT_FILTERS`.

but with RICHTEXT_FILTERS set instead of RICHTEXT_FILTER...

Traceback:
File "/home/rod/pyves/rodmtech2/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  92.                     response = middleware_method(request)
File "/home/rod/pyves/rodmtech2/local/lib/python2.7/site-packages/django/utils/importlib.py" in import_module
  35.     __import__(name)
File "/home/rod/pyves/rodmtech2/project/rodmtech/urls.py" in <module>
  6. import mezzanine_pagedown.urls
File "/home/rod/pyves/rodmtech2/local/lib/python2.7/site-packages/mezzanine_pagedown/urls.py" in <module>
  3. from .views import MarkupPreview
File "/home/rod/pyves/rodmtech2/local/lib/python2.7/site-packages/mezzanine_pagedown/views.py" in <module>
  8. render = import_dotted_path(settings.RICHTEXT_FILTER)
File "/home/rod/pyves/rodmtech2/local/lib/python2.7/site-packages/mezzanine/conf/__init__.py" in __getattr__
  98.             return getattr(django_settings, name)
File "/home/rod/pyves/rodmtech2/local/lib/python2.7/site-packages/django/conf/__init__.py" in __getattr__
  54.         return getattr(self._wrapped, name)

The following seems to be a suitable workaround

RICHTEXT_FILTER = 'mezzanine_pagedown.filters.custom'
RICHTEXT_FILTERS = (RICHTEXT_FILTER,)

Comments (2)

  1. Log in to comment