我得到了 satchmo 来尝试,但第一次尝试时我遇到了一个很大的问题,我不明白出了什么问题。当我$ python clonesatchmo.py
进入 clear django 项目时,它会引发错误:
$ python clonesatchmo.py
Creating the Satchmo Application
Customizing the files
Performing initial data synching
Traceback (most recent call last):
File "manage.py", line 18, in <module>
from django.core.management import execute_manager
ImportError: cannot import name execute_manager
Traceback (most recent call last):
File "manage.py", line 18, in <module>
from django.core.management import execute_manager
ImportError: cannot import name execute_manager
Error: Can not copy the static files.
Error: Can not syncdb.
并创建一个存储文件夹。像这样尝试是有效的!!:
$ python manage.py shell
>>> import os, sys
>>> print sys.executable
/some/path/to/python
>>> os.system('bash')
$ /some/path/to/python manage.py validate
# this is NOT fail on "from django.core.management import execute_manager"
我有 Django 1.6 和 Satchmo 0.9.3,python 2.7.5(我不使用 virtualenv)