summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/email.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/topics/email.txt b/docs/topics/email.txt
index c49e9ed9ee..7333ae7110 100644
--- a/docs/topics/email.txt
+++ b/docs/topics/email.txt
@@ -188,6 +188,7 @@ from the request's POST data, sends that to admin@example.com and redirects to
"/contact/thanks/" when it's done::
from django.core.mail import send_mail, BadHeaderError
+ from django.http import HttpResponse, HttpResponseRedirect
def send_email(request):
subject = request.POST.get('subject', '')