django cms integration - bsimic0001/django-wiki GitHub Wiki

I use the following in a site-specific app called 'theme' to add django-wiki to django-cms painlessly.

With my 'theme' app activated there are two app integrations available in the pages Advanced menu ("Wiki Apphook" & "Notify Apphook")

Add a new Page in the cms, select the integration as part of the page's advanced options, mark it as 'published' and 'in menus' and django-wiki is part of the site's navigation.

Code (cms_app.py)

# django-wiki hook for django-cms

from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
from django.utils.translation import ugettext_lazy as _
from wiki.urls import get_pattern as get_wiki_pattern
from django_notify.urls import get_pattern as get_notify_pattern
 

class WikiApphook(CMSApp):
    name = _("Wiki Apphook")
    urls = [get_wiki_pattern()]

apphook_pool.register(WikiApphook)


class NotifyApphook(CMSApp):
    name =_("Notify Apphook")
    urls = [get_notify_pattern()]

apphook_pool.register(NotifyApphook)`

Reference