Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tutorial04.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down