0
我有一個django項目在開發服務器(ubuntu)上工作,我們一直在努力。我正試圖在我的MacBook Pro上本地安裝它。Django avatar util問題
我對Django環境(LAMP中的10年)比較陌生。我嘗試安裝所有相關的軟件包,例如南,django註冊等。
我遇到了django-avatar的問題,我想雖然如此。當我嘗試運行服務器時,出現以下錯誤。我不知道該從哪裏去解決問題。任何提示和一般教育將不勝感激。
$ python manage.py runserver
Validating models...
Unhandled exception in thread started by <function inner_run at 0x101d42848>
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 48, in inner_run
self.validate(display_num_errors=True)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/base.py", line 249, in validate
num_errors = get_validation_errors(s, app)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/validation.py", line 28, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/loading.py", line 146, in get_app_errors
self._populate()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/loading.py", line 64, in _populate
self.load_app(app_name)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/db/models/loading.py", line 78, in load_app
models = import_module('.models', app_name)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/Users/derekorgan/Code/python/fishpond/fishpond/../fishpond/fpcasting/models.py", line 3, in <module>
from fishpond.fpprofile.models import ActorProfile
File "/Users/derekorgan/Code/python/fishpond/fishpond/../fishpond/fpprofile/models.py", line 34, in <module>
from avatar.util import invalidate_cache
ImportError: No module named util
謝謝你會檢查。 – 2010-12-11 00:03:56