嗨,我在Django有应用程序,我想做apphook http://docs.django-cms.org/en/release-3.4.x/how_to/apphooks.html 所以我在我的应用程序目录
中创建了名为cms_apps.py的文件# -*- coding: utf-8 -*-
from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
from django.utils.translation import ugettext_lazy as _
class Aktualnosci(CMSApp):
name = _('Aktualnosci')
urls = ['aktualnosci.urls']
app_name = 'aktualnosci'
apphook_pool.register(Aktualnosci)
重新加载服务器当然django看不到我的cms_apps.py 我可以在我的cms_apps.py中写出如此随机的垃圾,Django是沉默的。