Quote:IndentationError: unindent does not match any outer indentation level
Look at line 16, and the lines immediate above and below it:
def detail(request, question_id):
question = Question.objects.get(pk=question_id)
Indentation in Python is critical: all code with exactly the same whitespace at the left is part of the same block: any change in whitespace ends the block and starts a new one.
So the first line in the
is a block on it's own, and the system cannot work out what to do with the subsequent lines at all.