I have a model:
class errors(models.Model):
    date           = models.DateTimeField()
    msg            = models.CharField(max_length=500)
I simply cannot get the date format right when inserting. I do
msg = "error" 
date = datetime.datetime.now()
cursor = connection.cursor()
cursor.execute("INSERT INTO cmt_errors('date', 'msg') VALUES (%s, %s)", (date, msg))
How should I format date so I don't get a syntax error? I am, btw, able to do a select so I've got the tables imported, etc.