我在附加的div.image上拖动事件.

当我在div上鼠标按下拖动事件start.for这我包括nestable.js插件.我想在点击div的链接时停止div的事件.我正在使用来自链接的js和html文件:Nestable
请给出解决方案,我该怎么做.
我使用 python 2.7 和 MySQL 作为数据库。在我的 python 程序中有一个INSERT这样的查询:
cursor.execute("insert into login(username,passw)values('"+i.username+"','"+i.password+"')")
result=cursor.execute("select * from login")
print cursor.fetchall()
Run Code Online (Sandbox Code Playgroud)
当我检查数据库时,没有条目。但是在我的 python 代码中选择之后,当我打印结果时,它显示插入的数据。我也没有使用任何交易语句。