TabError:inconsistent use of tabs and spaces in indentation

版权声明:本文为博主原创文章,未经博主允许也可以得转载。 https://blog.csdn.net/zrcshendustudy/article/details/82861225

情境再现:

执行这条命令时

python manage.py makegrations learning_log

报了这个错:

TabError:inconsistent use of tabs and spaces in indentation

 

 

分析问题:

 

翻译过来,指空格的意思。

感谢这条CSDN的指出:

https://blog.csdn.net/tuna_lxg/article/details/40591899

 

解决问题:

这个报错就是混用了tab和4个空格造成的,检查代码,要不全部用tab,要不全部用4个空格,或者用idle编辑器校正

 

我是在记事本编辑的,改动一下就好了,统一。

猜你喜欢

转载自blog.csdn.net/zrcshendustudy/article/details/82861225