You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: qa/views.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@
9
9
importdatetime
10
10
fromqa.formsimportUserForm, UserProfileForm
11
11
12
+
fromdjango.core.mailimportsend_mail
13
+
12
14
defsearch(request):
13
15
ifrequest.method=='POST':
14
16
word=request.POST['word']
@@ -136,6 +138,9 @@ def add(request):
136
138
t.slug=tag
137
139
t.save()
138
140
q.tags.add(t)
141
+
142
+
#send_mail('QA: Your Question has been Posted.', 'Thank you for posting the question, '+question_text+'. We will notify you once someone posts an answer.', 'admin@test.com', [request.user.email], fail_silently=False)
0 commit comments