Apphook to a django cms page

14 views
Skip to first unread message

Perceval Maturure

unread,
Aug 12, 2019, 3:44:18 AM8/12/19
to django...@googlegroups.com

Dear Django users.
i am looking for a more straightforward tutorial or notes to perfom an aphook of my app to the django cms page. I cannot pick the app on the dropdown menu in my cms pages. Please below cms_app.py.


#####
from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
from django.utils.translation import ugettext_lazy as _


class archivesuploads(CMSApp):
    app_name = "archivesuploads"
    name = _("ARCHIVESUPLOADS")

    def get_urls(self, page=None, language=None, **kwargs):
        return ["archivesuploads.urls"]
apphook_pool.register(archivesuploads)  # register the application



--
Perceval Maturure
083 303 9423

Reply all
Reply to author
Forward
0 new messages