Tôi nhận được satchmo để thử, nhưng tôi có một vấn đề lớn lúc đầu thử, và tôi không hiểu whats sai. Khi tôi làm $ python clonesatchmo.py
vào dự án django rõ ràng, nó trows một lỗi:Satchmo clonesatchmo.py ImportError: không thể nhập tên execute_manager
$ 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.
VÀ tạo ra một thư mục lưu trữ. cố gắng smth như thế này đang làm việc !!:
$ 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"
Tôi có Django 1.6 và Satchmo 0.9.3, python 2.7.5 (Tôi không sử dụng virtualenv)
"(Tôi không sử dụng virtualenv)" orly? '/ some/path/to/python' trông giống như vậy. – AdamKG
@AdamKG Nhưng nó là đường dẫn standart ... nó đã được tư vấn trong các nhóm google để thực hiện hành động này .. "/ some/path/to/python" là: '/Library/Frameworks/Python.framework/Versions/2.7/ Tài nguyên/Python.app/Nội dung/MacOS/Python' – Pruntoff