我是Python和Django的新手,目前正忙于通过www.djangoproject.com上的教程来学习自己。我正在使用PyCharm并在OS X El Capitan上工作。我已经从github导入了一个项目,并基于Python 3.5.1为项目解释器创建了一个虚拟环境。在虚拟机中,我安装了django。
然后,我激活了虚拟机。
现在..我开始尝试在终端中像p一样执行简单的命令ython manage.py startapp deonapp,python 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 非常陌生,目前正忙于通过 www.djangoproject.com 上的教程自学。我正在使用 PyCharm 并在 OS X El Capitan 上工作。我已经从 GitHub 导入了一个项目,并为基于 Python 3.5.1 的项目解释器创建了一个虚拟环境。在 vm 中我安装了 django。
然后我激活了虚拟机。
现在..我开始尝试在终端中执行简单的命令python manage.py startapp deonapp,python 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)