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 [email protected].
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.