Just in case, this helps someone, I created a context processor for this:
# context_processors.py from mezzanine.pages.models import Page def featured(request):
added a context handler to my .py settings:
TEMPLATE_CONTEXT_PROCESSORS = ( "django.contrib.auth.context_processors.auth", ## ...etc..., "myapp.context_processors.featured", )
and included the displayed content in the base.html template:
{% block right_panel %} <div> {% editable featured_page.richtextpage.content %} {{ featured_page.richtextpage.content|richtext_filter|safe }} {% endeditable %} </div> {% endblock %}
If you know an easier way to do this, I would love to hear your decision!
source share