2011-01-07 78 views
2

我正在使用這一個: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. 

回答

相關問題