1👍
“locally versus django framework”.
Does this mean you are editing on one machine and copying the file to another? The problem is an IndentationEror, according to your output, so perhaps this is a space/tab or linebreak issue (one windows/one linux?) If the former, try replacing all tabs with spaces in your editor and ensuring you have the indentation correct after. If the latter, try a dos2unix on the file.
Source:stackexchange.com