Error - "SQLite DateTime type only accepts Python " "datetime and date objects as input."
First import the datetime
class:
from datetime import datetime
Then create a datetime
object and use that to set your attribute:
ts1.departure_date = datetime(2012, 3, 3, 10, 10, 10)