Descriptor 'date' requires a 'datetime.datetime' object but received a 'unicode'
问题 I am using piston to write a JSON api for an application I am writing which handles recurring calendar events. My API was working for regular events, when I attempted to add logic to handle the recurrence, I started getting the following error: descriptor 'date' requires a 'datetime.datetime' object but received a 'unicode' Here is my handlers.py : from piston.handler import BaseHandler from lessons.models import NewEvent, EachEvent import calendar from datetime import datetime, timedelta