diff --git a/tutorial04.rst b/tutorial04.rst index c70a200..6aecbc3 100644 --- a/tutorial04.rst +++ b/tutorial04.rst @@ -146,6 +146,12 @@ Again, a minimal fix: def poll(request, poll_id): return HttpResponse() +Don't forget add the following import, if you have erase previously: +.. sourcecode:: python + :filename: mysite/polls/views.py + + from django.http import HttpResponse + Now we get this error:: AssertionError: No templates used to render the response