2012-08-06 70 views
3

我试图做到这一点:我可以在Python Bottle中使用PUT http方法吗?

@get("/admin/questions/:question_id") 
def question (question_id): 
    pass 
    #Some code for returning the question 

@put("/admin/questions/:question_id") 
    pass 
    #I intend to write some code to update the question here. 

这可能吗? GET和POST可以工作,PUT显然不起作用。

+1

*什么*不起作用? – 2012-08-07 11:49:28

回答

相关问题