完全用的源代码就是到配置数据库就出错
Traceback (most recent call last):
File "e:\python\Lib\logging\config.py", line 555, in configure
handler = self.configure_handler(handlers[name])
File "e:\python\Lib\logging\config.py", line 728, in configure_handler
result = factory(**kwargs)
File "e:\python\Lib\logging\__init__.py", line 1041, in __init__
StreamHandler.__init__(self, self._open())
File "e:\python\Lib\logging\__init__.py", line 1070, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: 'E:\\tmp\\test.log'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "E:\biye\venv\lib\site-packages\django\core\management\__init__.py", line 371, in execute_from_command_line
utility.execute()
File "E:\biye\venv\lib\site-packages\django\core\management\__init__.py", line 347, in execute
django.setup()
File "E:\biye\venv\lib\site-packages\django\__init__.py", line 19, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "E:\biye\venv\lib\site-packages\django\utils\log.py", line 73, in configure_logging
logging_config_func(logging_settings)
File "e:\python\Lib\logging\config.py", line 792, in dictConfig
dictConfigClass(config).configure()
File "e:\python\Lib\logging\config.py", line 563, in configure
'%r' % name) from e
ValueError: Unable to configure handler 'file'
报错内容,但是没改过源码一直跟着走的