[Answer]-IndentationError when running manage.py runserver Django

1👍

Using tab in Django is a bad practice. In order to fixed your problem you must use spaces only, I think 4 spaces. Try to backspace your codes and you’ll see that it’s tab indention, use only spaces.

0👍

I ran into the same error today.
Just like Dombey python -m tabnanny -v * reported a Clean bill of health for all my files.

I am using git so I tried running the master branch (which used to run fine) but I got the same result.

I don’t know what triggered the error but uninstalling-reinstalling Django solved it for me.

👤ldirer

Leave a comment