由于无法导入 django.test 模块,因此单元测试不起作用。
>>> import django.test
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\django\test\__init__.py", line 5, in <mod
le>
from django.test.client import Client, RequestFactory
File "C:\Python27\lib\site-packages\django\test\client.py", line 21, in <modu
e>
from django.test import signals
ImportError: cannot import name signals
>>>
请有人帮我解决它。我正在使用 django 1.3 版