Pycharm:无法配置处理程序'default'

时间:2018-06-07 16:22:29

标签: python pycharm

    "C:\ProgramFiles\PyCharm 2017.3.3\bin\runnerw.exe" E:\Coder\Python\Django\Forks\blog_project-master\venv\Scripts\python.exe E:/Coder/Python/Django/Forks/blog_project-master/manage.py runserver 8000
    Unhandled exception in thread started by <function wrapper at 0x00000000049FAC18>
    Traceback (most recent call last):
      File "E:\Coder\Python\Django\Forks\blog_project-master\venv\lib\site-packages\django\utils\autoreload.py", line 228, in wrapper
        fn(*args, **kwargs)
      File "E:\Coder\Python\Django\Forks\blog_project-master\venv\lib\site-packages\django\core\management\commands\runserver.py", line 116, in inner_run
        autoreload.raise_last_exception()
      File "E:\Coder\Python\Django\Forks\blog_project-master\venv\lib\site-packages\django\utils\autoreload.py", line 251, in raise_last_exception
        six.reraise(*_exception)
      File "E:\Coder\Python\Django\Forks\blog_project-master\venv\lib\site-packages\django\utils\autoreload.py", line 228, in wrapper
        fn(*args, **kwargs)
      File "E:\Coder\Python\Django\Forks\blog_project-master\venv\lib\site-packages\django\__init__.py", line 22, in setup
        configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
      File "E:\Coder\Python\Django\Forks\blog_project-master\venv\lib\site-packages\django\utils\log.py", line 75, in configure_logging
        logging_config_func(logging_settings)
      File "C:\ProgramFiles\Python\Python27\Lib\logging\config.py", line 794, in dictConfig
        dictConfigClass(config).configure()
      File "C:\ProgramFiles\Python\Python27\Lib\logging\config.py", line 576, in configure
        '%r: %s' % (name, e))
    ValueError: Unable to configure handler 'default': [Errno 2] No such file or directory: 'C:\\ProgramFiles\\Python\\Python36\\log\\all.log'

我安装了两个版本的python,即python2.7和python3.6。我在我的项目中使用了python2.7。令我困惑的是最后一句“没有这样的文件或目录:'C:\ ProgramFiles \ Python \ Python36 \ log \ all.log'”,我在python36目录和python27目录中都找不到all.log 。谁能帮我解决这个问题?谢谢!

0 个答案:

没有答案