You should take a look into your webservers error log. Kind regards Cornelius
Am 04.07.2014 12:19, schrieb 'Frank Liou' via sqlalchemy:
> 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 [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
