我将同时使用django-notification和django-messages项目,并利用django消息中内置的django通知集成,以及接收、回复消息时的默认通知类型
但是,我无法确定这些默认NoticeType对象是如何创建的。django通知文档建议在管理.py文件,这是我为自己的自定义通知所做的。我在任何代码中都找不到定义这些通知类型的任何地方。但每次我在新数据库上运行syncdb时,它们都会神奇地出现。在
由django messages应用程序创建的通知类型的“label”属性如下:
django_消息/管理.py公司名称:
https://github.com/arneb/django-messages/blob/master/django_messages/management.py
类型在这里定义,并连接到后同步DB信号。在
相关问题 更多 >
编程相关推荐