已有183人关注
视频11分46秒处
发表在Python图书答疑 2020-05-07 悬赏:1 学分 《零基础学Python》第17章 智慧星答题测试系统
是否精华
版块置顶:

(venv) D:\pythonStudy\Code\examination>python manage.py migrate

Traceback (most recent call last):

  File "d:\python\python36\lib\logging\config.py", line 558, in configure

    handler = self.configure_handler(handlers[name])

  File "d:\python\python36\lib\logging\config.py", line 731, in configure_handler

    result = factory(**kwargs)

  File "d:\python\python36\lib\logging\__init__.py", line 1030, in __init__

    StreamHandler.__init__(self, self._open())

  File "d:\python\python36\lib\logging\__init__.py", line 1059, in _open

    return open(self.baseFilename, self.mode, encoding=self.encoding)

FileNotFoundError: [Errno 2] No such file or directory: 'D:\\tmp\\test.log'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "manage.py", line 22, in <module>

    execute_from_command_line(sys.argv)

  File "D:\pythonStudy\Code\examination\venv\lib\site-packages\django\core\management\__init__.py", line 363, in execute_from_c

ommand_line

    utility.execute()

  File "D:\pythonStudy\Code\examination\venv\lib\site-packages\django\core\management\__init__.py", line 337, in execute

    django.setup()

  File "D:\pythonStudy\Code\examination\venv\lib\site-packages\django\__init__.py", line 22, in setup

    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)

  File "D:\pythonStudy\Code\examination\venv\lib\site-packages\django\utils\log.py", line 75, in configure_logging

    logging_config_func(logging_settings)

  File "d:\python\python36\lib\logging\config.py", line 795, in dictConfig

    dictConfigClass(config).configure()

  File "d:\python\python36\lib\logging\config.py", line 566, in configure

    '%r: %s' % (name, e))

ValueError: Unable to configure handler 'file': [Errno 2] No such file or directory: 'D:\\tmp\\test.log'


分享到:
精彩评论 1
andy
学分:2118 LV10
TA的每日心情
继续努力
2017-02-06 23:42:34
2020-05-09
沙发

创建一下这个文件D:\\tmp\\test.log

在D盘下,创建tmp文件夹,创建test.log文件。


首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照