I try to insert username in to my table 

it show 

Internal Server Error 
The server encountered an internal error and was unable to complete your 
request. Either the server is overloaded or there is an error in the 
application. 

it maybe mean no request 

i try to change username to '123123' 

then it works.... 

what's problem with this? 



@app.route('/user/<username>',methods=['GET','POST']) 
def hello(username): 
        if request.method=='POST': 
            save_friends(username) 
            return username 


def save_friends(username): 
    conn = engine.connect() 
    conn.execute("INSERT INTO friends(name) VALUES(username)") 

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to