控制台里面的错误
File " /home/link/.local/lib/python3.10/site-packages/django/__init__.py" , line19,in setup
configure_logging(settings.LOGGING_CONFIG,settings.LOGGING)
File "/home/link /.local/lib/python3.10/site-packages/django/utils/log.py" , lin:76, in configure_logging
logging_config_func(logging_settings)
File "/usr/lib/python3.10/logging/config.py", line 811, in dictconfigdictConfigclass(config).configure()
File "/usr/lib/python3.10/logging/config.py" , line 572, in configureraise ValueError( 'Unable to configure handler '
ValueError : Unable to configure handler 'default'
代码里的:
' handlers ' : {
'mail_admins ' : {
'level' : 'ERROR ',
'class ': 'django.utils.log.AdminEmailHandler ','include_html' : True,
,l
'default': {i
'level' : 'DEBUG ',
'class ' : 'logging.handlers.RotatingFileHandler',
'filename ' : os.path.join(BASE_DIR+ '/logs / ' , 'ali.log '),'maxBytes ' : 1024*1024*2,
' backupCount ' : 5,
'formatter ' : 'standard ' ,},
是不是路径错了啊?