python manage.py 显示ImportError

版权声明:供学习记录之用 https://blog.csdn.net/Keruila/article/details/82706557

如果你的Django项目有两个app,分别为app1和app2,

无论是在命令行python manage.py test 或是python manage.py shell等命令都显示

ImportError: No module named 'app1app2'

那么你可以去看看你的settings.py中“INSTALLED_APPS”里app后面有没有加逗号……

猜你喜欢

转载自blog.csdn.net/Keruila/article/details/82706557