我刚开始Django教程。运行命令时:
$django-admin.py startproject mysite
mysite项目已经创建,但是mysite/下没有manage.py文件
我试图得到详细的输出:
$django-admin.py startproject -v 3 mysite
/home/pratik/Source/Numerical/ETS/etsproxy/enthought/__init__.py:7: DeprecationWarning: enthought namespace imports are deprecated
DeprecationWarning)
Rendering project template files with extensions: .py
Rendering project template files with filenames:
Creating /home/pratik/Projects/django_learn/mysite/mysite/__init__.py
Creating /home/pratik/Projects/django_learn/mysite/mysite/urls.py
Creating /home/pratik/Projects/django_learn/mysite/mysite/settings.py
Creating /home/pratik/Projects/django_learn/mysite/mysite/wsgi.py
我正在使用来自git repository的最新Django源
有什么问题吗?我将更新这篇文章的更多信息,我继续。
更多信息:
$ python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
编辑:manage.py似乎只是django-admin.py的一个包装器,所以现在我可以 至少继续教程吧
编辑2:我也试过稳定的1.4.3版本,但还是没有成功
$ django-admin.py version
1.4.3
Edit3:以下是tree
的输出:
$ tree
.
`-- mysite
`-- mysite
|-- __init__.py
|-- settings.py
|-- urls.py
`-- wsgi.py
2 directories, 4 files
你能手动创建manage.py吗?
将此代码放入:
资料来源: https://github.com/django/django/blob/master/django/conf/project_template/manage.py
相关问题 更多 >
编程相关推荐