我在设置Django时遇到问题.
I have a problem in setting up django.
我的情况:我的Windows 8计算机中装有Anaconda Python 2.7.在Anaconda命令提示符窗口中,键入:pip install django.成功了.
My situation: I have Anaconda Python 2.7 in my Windows 8 computer. On the Anaconda command prompt window, I type: pip install django. This is successful.
然后我创建一个名为"newproject"的文件夹.在命令提示符下,我转到文件夹"newproject".然后django-admin.py startproject newproject.成功了.
Then I create a folder named "newproject". On the command prompt I went to the folder "newproject". Then django-admin.py startproject newproject. This is successful.
然后我运行python manage.py runserver.它告诉我
"...can't open file 'manage.py': [Errno 2] No such file or directory"我在网上检查了udemy django安装指南和其他指南.我什至设置了一个虚拟环境.但是主要的问题始终是:can't open file 'manage.py'
I checked out udemy django installation guide and other guides on the net. I have even set up a virtual environment. But the main problem is always: can't open file 'manage.py'
推荐答案您不在正确的目录中...在您描述的情况下,您应该具有:
You're not in the proper directory...In the case you described, you should have:
如果需要,经常使用ls仔细检查您在目录树中的位置.
Use ls often, if you need, to double check where you are in the directory tree.
更多推荐
安装Django后无法打开manage.py
发布评论