我想用IPython发送一封简单的邮件。我没有建立任何模型仍然得到这个错误。我们能做些什么呢?
错误: /home/sourabh/ django/ learn/local/lib/python2.7/site-packages/django/db/models/fields/init.py:827: RuntimeWarning: DateTimeField received a naive datetime (2013-09-04 14:14:13.698105) while time zone support is active。 RuntimeWarning)
尝试:第一步是在设置文件中添加USE_TZ = True,并安装pytz(如果可能的话)。
错误发生了变化:
(learn)sourabh@sL:~/Django/learn/event$ python manage.py shell
/home/sourabh/Django/learn/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py:53: RuntimeWarning: SQLite received a naive datetime (2013-09-05 00:59:32.181872) while time zone support is active.
RuntimeWarning)