本文主要是介绍Django同步mysql数据库第二步报错AttributeError: ‘str‘ object has no attribute ‘decode‘解决办法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Microsoft Windows [版本 6.1.7601]
版权所有 © 2009 Microsoft Corporation。保留所有权利。
(E:\Anaconda1\envs\mydjango) E:\CODING_stage2\2020_10_12\dj01>python manage.py startapp app01
(E:\Anaconda1\envs\mydjango) E:\CODING_stage2\2020_10_12\dj01>python manage.py check
System check identified no issues (0 silenced).
(E:\Anaconda1\envs\mydjango) E:\CODING_stage2\2020_10_12\dj01>python manage.py makemigrations
Traceback (most recent call last):
File “manage.py”, line 21, in
main()
File “manage.py”, line 17, in main
execute_from_command_line(sys.argv)
File “E:\Anaconda1\envs\mydjango\lib\site-packages\django\core\management_init_.py”, line 381, in execute_from_command_line
utility.execute()
File “E:\Anaconda1\envs\mydjango\lib\site-packages\django\core\management_init_.py”, line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “E:\Anaconda1\envs\mydjang
这篇关于Django同步mysql数据库第二步报错AttributeError: ‘str‘ object has no attribute ‘decode‘解决办法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!