Python django错误OSError:[WinError 123]文件名,目录名或卷标签语法不正确:'< frozen importlib._bootstrap>' [英] Python django error OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '<frozen importlib._bootstrap>'
本文介绍了Python django错误OSError:[WinError 123]文件名,目录名或卷标签语法不正确:'< frozen importlib._bootstrap>'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Django的新手,所以我对该错误的信息较少。
I am new to Django so I have less information about this error.
推荐答案
我在这里遇到了同样的问题。在苦苦挣扎了几个小时之后,我找出了原因。非常基础
我们忘记了运行迁移命令。
要修复,请依次运行以下命令:
I had the same issue here. After having suffering for a few hours stuck, I figured out the reason. It's very basic. We forgot to run the migrate commands. To fix, run the below commands in order:
python manage.py migrate
python manage.py makemigrations
python manage.py migrate
错误通知不是无关紧要的,但是反正还是可以解决该错误:v。
While the error notification is not relavance but this fix the error anyway :v.
您可以阅读有关迁移的更多信息此处。
You can read further information about migration Here.
这篇关于Python django错误OSError:[WinError 123]文件名,目录名或卷标签语法不正确:'< frozen importlib._bootstrap>'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文