I have folder which contains app.py and books.db file now I want to insert values to that db file using flask.
I am able to read it properly but unable to insert values into it.
Any idea how to achieve this ?
@app.route('/insert',methods=['GET','POST'])
def addv():
    conn = sqlite3.connect('books.db')
    conn.row_factory = dict_factory
    cur = conn.cursor()
    cur.execute('insert into books values (NULL,2014,\'Vivank\',\'try\',\'trying\')')
    return "inserted"
This is not inserting values in books.db ?
Or any way around to insert data into it ?
 
    