【发布时间】:2011-08-05 08:34:34
【问题描述】:
问题,
我已经创建了我的新通知,我的新通知模板。 一旦用户执行特定操作,它就会创建新记录,但不会发送电子邮件。
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')})
【问题讨论】:
标签: django django-apps django-notification