Python Satchmo clonesatchmo.py ImportError:无法导入名称执行\u管理器

Python Satchmo clonesatchmo.py ImportError:无法导入名称执行\u管理器,python,django,django-models,satchmo,django-manage.py,Python,Django,Django Models,Satchmo,Django Manage.py,我让satchmo试试,但我在第一次尝试时遇到了一个很大的问题,我不知道出了什么问题。 当我在clear django项目中创建$python clonesatchmo.py时,出现了一个错误: $ python clonesatchmo.py Creating the Satchmo Application Customizing the files Performing initial data synching Traceback (most recent call last): Fi

我让satchmo试试,但我在第一次尝试时遇到了一个很大的问题,我不知道出了什么问题。 当我在clear django项目中创建
$python clonesatchmo.py
时,出现了一个错误:

$ 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.
我有Django 1.6和Satchmo 0.9.3,python 2.7.5
(我不使用virtualenv)

执行管理器
作为Django 1.4中项目布局重构的一部分,被放在弃用路径上。根据弃用政策,这意味着
execute\u manager
的代码已在1.6中完全删除。如果您看到此导入错误,则您使用的Satchmo版本尚未更新为与Django 1.6兼容。

将manage.py的内容替换为以下内容(来自新的Django 1.6项目)

#/usr/bin/env python
导入操作系统
导入系统
如果名称=“\uuuuu main\uuuuuuuu”:
setdefault(“DJANGO\u设置\u模块”,“.SETTINGS”)
从django.core.management导入从命令行执行
从命令行(sys.argv)执行命令

“(我不使用virtualenv)”奥利
/some/path/to/python
看起来确实像。@AdamKG但它是标准路径。。。谷歌集团建议采取这一行动。。“/some/path/to/python”是:
/Library/Frameworks/python.framework/Versions/2.7/Resources/python.app/Contents/MacOS/python
非常感谢!!但是我如何找到替换它的位置呢?我替换了“manage.py”中的所有导入,但似乎我错过了smth…即使您修复了此导入,我认为您也无法使其正常工作。Satchmo并不声称支持Django 1.5,更不用说目前处于测试阶段的1.6了。这帮助我了解了如何使用google的示例来使用Django的api
$ 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"
#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "<app>.settings")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)