0
我正在使用emencia.django.newsletter
。當我運行`蟒蛇manage.py send_newsletter」我得到這個錯誤emencia.django.newsletter datetime django問題1.4
if self.newsletter.sending_date <= datetime.now() and \ TypeError: can't compare offset-naive and offset-aware datetimes
這是錯誤來自:
def can_send(self):
"""Check if the newsletter can be sent"""
if self.test:
return True
if self.newsletter.sending_date <= datetime.now() and\
(self.newsletter.status == Newsletter.WAITING or\
self.newsletter.status == Newsletter.SENDING):
return True
return False
我使用Django 1.4
任何想法?