content_sha1 = '9aeab4412cc9b1add84a6d2bca574664e193b56e'
add_date = '2012-05-15 00:00:00'
sql = (
    """INSERT INTO main_document SET url = %s, md5 = %s, host = %s, content_sha1 = %s, add_date = %s"""
    )
cursor.execute(sql, (url, md5, host, content_sha1, add_date))
Data truncated for column 'url' at row 1 - Error with programming with Python Django