405 Error (Method Not Allowed) when using DELETE method to POST to controller

10 views
Skip to first unread message

D.W. Small

unread,
Jul 12, 2016, 3:43:35 PM7/12/16
to TurboGears
I am using TG 2.1 and am receiving an error when I attempt to send the DELETE method to the controller.

GET and POST method both work fine, but for some reason the DELETE method gives a not allowed error (405)

class DELETEController(RestController):

    @expose('json')
    def product(self, product_guid):
         pass

Is there a simple way to allow/expose the delete method in this controller ?
Reply all
Reply to author
Forward
0 new messages