Re: Django apphooks

10 views
Skip to first unread message
Message has been deleted

Gabo LaTo

unread,
Aug 23, 2019, 7:22:02 AM8/23/19
to django...@googlegroups.com
Hi Perceval,

Have you added your page to a route in the urls.py of your archivesuploads app?


El vie., 23 ago. 2019 a las 5:18, Perceval Maturure (<drper...@gmail.com>) escribió:

Dear Django users

below is my django cms apphook, its showing the app on the drop down but it doesn't hook the application to a page. I have tried the below tutorial.  i would be happy if one can share a working manual.

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


class ArchivesuploadsApphook(CMSApp):
    app_name = "archivesuploads"
    name = _("Publications Application")

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


apphook_pool.register(ArchivesuploadsApphook)  # register the application



--
Perceval Maturure
083 303 9423

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFZtZmC8wKuG6-0Byz4%2BZMy-FYuhB-qRW_BHahSk2QHbSp8%3DWA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages