已有184人关注
运行《零基础学Python》第17章的源码,程序出错了,信息见内容
发表在Python图书答疑 2018-12-28 悬赏:1 学分 《零基础学Python》第17章 智慧星答题测试系统
是否精华
版块置顶:

E:\Practice\1_Python\examination_source_code>python manage.py makemigrations

Traceback (most recent call last):

  File "D:\Anaconda3\lib\logging\config.py", line 558, in configure

    handler = self.configure_handler(handlers[name])

  File "D:\Anaconda3\lib\logging\config.py", line 731, in configure_handler

    result = factory(**kwargs)

  File "D:\Anaconda3\lib\logging\__init__.py", line 1025, in __init__

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

  File "D:\Anaconda3\lib\logging\__init__.py", line 1054, in _open

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

FileNotFoundError: [Errno 2] No such file or directory: 'E:\\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:\Anaconda3\Lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line

    utility.execute()

  File "D:\Anaconda3\Lib\site-packages\django\core\management\__init__.py", line 357, in execute

    django.setup()

  File "D:\Anaconda3\Lib\site-packages\django\__init__.py", line 19, in setup

    configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)

  File "D:\Anaconda3\Lib\site-packages\django\utils\log.py", line 76, in configure_logging

    logging_config_func(logging_settings)

  File "D:\Anaconda3\lib\logging\config.py", line 795, in dictConfig

    dictConfigClass(config).configure()

  File "D:\Anaconda3\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: 'E:\\tmp\\test.log'


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

读者你好:

    请参照“使用说明”视频安装运行。

首页上一页 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经营性网站备案信息 营业执照