我让萨奇莫试一试,但我在第一次试一试时遇到了一个很大的问题,我不明白是什么错了。
当我将$ 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.
并创建存储文件夹。 像这样尝试smth是有效的!!以下内容:
$ 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)
将manage.py的内容替换为以下内容(来自新的django 1.6项目)。
作为Django 1.4https://docs.djangoproject.com/en/1.4/releases/1.4/#django-core-management-execute-manager中项目布局重构的一部分,
execute_manager
被置于弃用路径上。这意味着execute_manager
的代码已在1.6中完全删除。如果您看到这个导入错误,那么您使用的Satchmo版本尚未更新为与Django 1.6兼容。相关问题 更多 >
编程相关推荐