Edit: I am able to resolve the spacing/tab issues by adjusting the settings in Sublime Text. I tried converting spaces to tabs as suggested in some answers, but it didn't work for me. Instead, converting indentations to spaces did.
View > Indentation > Convert Indentations to Spaces
I am new to Python/Django (doing the Tango with Django tutorial) and am having indentation errors. I've read and tried out some solutions regarding indentation errors, but nothing is working for me. Hope someone is able to help me out - thanks in advance!
manage.py:
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tango_django.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
error:
$ python manage.py makemigrations rango
File "manage.py", line 8
from django.core.management import execute_from_command_line
^
IndentationError: unindent does not match any outer indentation level
I tried tabnanny and got this:
$ python -m tabnanny manage.py
'manage.py': Indentation Error: unindent does not match any outer indentation level (<tokenize>, line 8)