0

我已经将 django 网站从实时服务器迁移到我的本地主机,我备份了 posrgresql 数据库并附加到我的本地主机我已经更改了 live_setting.py 中的数据库连接详细信息,并安装了已经安装在实时服务器上的所需软件包但是当我使用 manage.py ruserver 命令时,我无法在本地主机上运行该网站,但出现以下错误。

Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x02BB6530>>
Traceback (most recent call last):
  File "C:\Python26\lib\site-packages\django\core\management\commands\runserver.py", line 91, in inner_run self.validate(display_num_errors=True)
  File "C:\Python26\lib\site-packages\django\core\management\base.py", line 266,in validate num_errors = get_validation_errors(s, app)
  File "C:\Python26\lib\site-packages\django\core\management\validation.py", line 30, in get_validation_errors for (app_name, error) in get_app_errors().items():
  File "C:\Python26\lib\site-packages\django\db\models\loading.py", line 158, inget_app_errors self._populate()
  File "C:\Python26\lib\site-packages\django\db\models\loading.py", line 67, in_populate self.load_app(app_name)
  File "C:\Python26\lib\site-packages\django\db\models\loading.py", line 88, in load_app models = import_module('.models', app_name)
  File "C:\Python26\lib\site-packages\django\utils\importlib.py", line 35, in import_module__import__(name)
  File "C:\Python26\lib\site-packages\django_social_auth3-0.7.20-py2.6.egg\social_auth\models.py", line 8, in <module>'social_auth.db.django_models'))
  File "C:\Python26\lib\site-packages\django\utils\importlib.py", line 35, in import_module__import__(name)
  File "C:\Python26\lib\site-packages\django_social_auth3-0.7.20-py2.6.egg\social_auth\db\django_models.py", line 5, in <module>from social_auth.db.base import UserSocialAuthMixin, AssociationMixin, \
  File "C:\Python26\lib\site-packages\django_social_auth3-0.7.20-py2.6.egg\social_auth\db\base.py", line 7, in <module> from openid.association import Association as OIDAssociation
  File "build\bdist.win32\egg\openid\association.py", line 37, in <module>
  File "build\bdist.win32\egg\openid\cryptutil.py", line 33, in <module>
  File "build\bdist.win32\egg\openid\oidutil.py", line 16, in <module> ImportError: No module named parse

我正在使用 python 2.6 和 django 1.4.3,我该如何解决这些错误,我是 python/django 开发的新手。

4

0 回答 0