我从repo中提取了一些正在运行的Django代码,并尝试设置我的本地Windows 7开发环境。我有我认为合适的Python版本(2.7.6)和Django 1.5.4的副本。
当我尝试python manage.py runserver
时,我得到了各种ImportErrors。
一个接一个,我做了一个pip install XXXX
,他们就离开了。
但现在我遇到了这个错误;
ImportError:无法导入名称parse_html_config
我只有几天的时间进入Python& Django所以不清楚 - 但我认为这个导入是commandtools包的一部分,所以我做了pip install commandtools
。我收到了已经安装了commandtools的消息。
当我搜索我的项目时,无论如何都找不到from XXXX import parse_html_config
,所以我不知道下一步该去哪看,有人可以帮忙吗?
整个输出是;
(swoopenv) C:\django workspace\swoopenv\swoop\swoop>python manage.py runserver
C:\Python27\Lib\site-packages\django\core\management\__init__.py:465: DeprecationWarning: The 'execute_manager' function is deprecated, you
likely need to update your 'manage.py'; please see the Django 1.4 release notes (https://docs.djangoproject.com/en/dev/releases/1.4/).
DeprecationWarning)
C:\Python27\Lib\site-packages\django\core\management\__init__.py:409: DeprecationWarning: The 'setup_environ' function is deprecated, you li
kely need to update your 'manage.py'; please see the Django 1.4 release notes (https://docs.djangoproject.com/en/dev/releases/1.4/).
DeprecationWarning)
C:\Python27\Lib\site-packages\django\conf\__init__.py:221: DeprecationWarning: You have no filters defined on the 'mail_admins' logging hand
ler: adding implicit debug-false-only filter. See http://docs.djangoproject.com/en/dev/releases/1.4/#request-exceptions-are-now-always-logge
d
DeprecationWarning)
ImportError: cannot import name parse_html_config