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