[Fixed]-"unexpected indent" error when using notepad++ for creating django function


Tell Notepad++ to show you all characters: go View > Show Symbol > Show All Characters. This will show tabs as and spaces as . Replace tabs with spaces where necessary to normalize the indentation.


Settings->Preferences->Language Menu/Tab Settings->”Replace by space”


In Notepad++ it is a checkbox here:

  • Settings>Preferences>

enter image description here

Leave a comment