質問、
新しい通知、新しい通知テンプレートを作成しました。ユーザーが特定のアクションを実行すると、新しいレコードが作成されますが、メールは送信されません。
django-notification は、ユーザーに自動メールを送信することを想定していますか?
def new(request, template_name='wall/new.html', user=None):
if request.method == 'POST':
form = PostForm(request.POST)
if form.is_valid():
form.save()
if request.POST.get('from_user') != request.POST.get('user'):
if notification:
notification.send([request.user], "new_wall_post", {"user": request.user, "post": request.POST.get('text')})