老师我连python manage.py startapp weibo都不能正常运行了
(django1.11) C:\Users\Administrator\Desktop\py_learn\my_project>python manage.py startapp weibo
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "C:\envs\django1.11\lib\site-packages\django\core\management\__init__.py", line 364, in execute_from_command_line
utility.execute()
File "C:\envs\django1.11\lib\site-packages\django\core\management\__init__.py", line 338, in execute
django.setup()
File "C:\envs\django1.11\lib\site-packages\django\__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\envs\django1.11\lib\site-packages\django\apps\registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "C:\envs\django1.11\lib\site-packages\django\apps\config.py", line 94, in create
module = import_module(entry)
File "d:\python\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'weibo'
(django1.11) C:\Users\Administrator\Desktop\py_learn\my_project>
2020-08-22 19:21:24
老师能下周在线指导一下么?太浪费时间了,都给我逼疯了
2020-08-22 22:18:54
同学,你好。
1、同学可以看下settings文件中是否还有关于weibo的配置信息,删除即可
2、同学可以创建其他app进行操作。
祝学习愉快~~~~
2020-08-23 20:02:40
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星