小编Deo*_*Zyl的帖子

ValueError:无法配置处理程序“文件”:[Errno 2]没有这样的文件或目录:

我是Python和Django的新手,目前正忙于通过www.djangoproject.com上的教程来学习自己。我正在使用PyCharm并在OS X El Capitan上工作。我已经从github导入了一个项目,并基于Python 3.5.1为项目解释器创建了一个虚拟环境。在虚拟机中,我安装了django。

然后,我激活了虚拟机。

现在..我开始尝试在终端中像p一样执行简单的命令ython manage.py startapp deonapppython manage.py runserver但是每次遇到下面粘贴的错误时,我都会错过什么?我似乎找不到/ log /目录?

Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/logging/config.py", line 558, in configure
    handler = self.configure_handler(handlers[name])
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/logging/config.py", line 731, in configure_handler
    result = factory(**kwargs)
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/logging/__init__.py", line 1008, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/logging/__init__.py", line 1037, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/deon/Documents/PyCharmProjects/Developments/deonproject/log/debug.log'

During handling of the above exception, another exception occurred:

Traceback (most recent …
Run Code Online (Sandbox Code Playgroud)

python django pycharm

4
推荐指数
2
解决办法
1万
查看次数

Django:ValueError:无法配置处理程序 - [Errno 2]

我对 Python 和 Django 非常陌生,目前正忙于通过 www.djangoproject.com 上的教程自学。我正在使用 PyCharm 并在 OS X El Capitan 上工作。我已经从 GitHub 导入了一个项目,并为基于 Python 3.5.1 的项目解释器创建了一个虚拟环境。在 vm 中我安装了 django。

然后我激活了虚拟机。

现在..我开始尝试在终端中执行简单的命令python manage.py startapp deonapppython manage.py runserver但每次我收到一个错误,我粘贴在下面..我错过了什么?我似乎找不到 /log/ 目录?

Traceback (most recent call last):
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/logging/config.py", line 558, in configure
    handler = self.configure_handler(handlers[name])
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/logging/config.py", line 731, in configure_handler
    result = factory(**kwargs)
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/logging/__init__.py", line 1008, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/logging/__init__.py", line 1037, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No …
Run Code Online (Sandbox Code Playgroud)

python django pycharm

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

django ×2

pycharm ×2

python ×2