[Answered ]-Django view: working with a file result in indentation error

2👍

✅

Well, an IndentationError means there is an indentation error!

Python is indentation-sensitive. Make sure that:

  1. All of your code is indented properly. Everything is in it’s proper level.
  2. You are not mixing spaces and tabs characters to indent. This is where people usually stuck.

Hope this helps!

Leave a comment