这是我的测试输出。我不知道在哪里设置了错误的 DateTimeField,因为我只能看到:/home/workspace/ticktockgo/venv/local/lib/python2.7/site-packages/django/db/models/fields/初始化.py
这对于缩小问题不是很有用。如何获取有关导致警告的原因的更多详细信息?堆栈跟踪会很好!
谢谢你的帮助!
python -W manage.py test
Creating test database for alias 'default'...
............................................................................................................................................................................................................................................./home/workspace/ticktockgo/venv/local/lib/python2.7/site-packages/django/conf/urls/defaults.py:3: PendingDeprecationWarning: django.conf.urls.defaults is deprecated; use django.conf.urls instead
PendingDeprecationWarning)
/home/workspace/ticktockgo/venv/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2013-02-01 00:00:00) while time zone support is active.
RuntimeWarning)
/home/workspace/ticktockgo/venv/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2013-02-01 23:59:59.999999) while time zone support is active.
RuntimeWarning)
/home/workspace/ticktockgo/venv/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-01-31 00:00:00) while time zone support is active.
RuntimeWarning)
/home/workspace/ticktockgo/venv/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-02-02 00:00:00) while time zone support is active.
RuntimeWarning)
/home/workspace/ticktockgo/venv/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:761: RuntimeWarning: DateTimeField received a naive datetime (2013-03-01 00:00:00) while time zone support is active.
RuntimeWarning)
..............ss.s..............................................................................................
----------------------------------------------------------------------
Ran 491 tests in 20.825s
OK (skipped=3)