我正在使用这一个:https://github.com/pinax/django-notification/blob/master/docs/usage.txt为什么我在Django通知中收到此错误?
所以,我遵循了所有的步骤。
from notification import models as notification
#first, create the notification type.
notification.create_notice_type("comment_received", ("Comment Received"), ("You have received a comment."))
#then, send the notification.
notification.send(request.user, "comment_received", {})
当然,在我的模板目录中,我创建了“通知”,就像doc说的那样。
里面/templates/notification/comment_received
,我有4个文件:
- full.txt,short.txt,notice.html,full.html
这些文件是空白的现在。他们只是说一个随机的句子。
为什么我在尝试发送通知时收到此错误?
Exception Type: NoReverseMatch at/
Exception Value: Reverse for 'notification_notices' with arguments '()' and keyword arguments '{}' not found.