Django REST Framework - 405 METHOD NOT ALLOWED using SimpleRouter

前端 未结 2 965
醉梦人生
醉梦人生 2020-12-29 05:45

I\'m using the SimpleRouter tuorial within the docs.

Just to test I\'ve created a temporary Authentication class:

class BackboneBasicAuthentication(a         


        
2条回答
  •  清歌不尽
    2020-12-29 06:10

    To me that seems to be caused by the routed viewset not implementing or not allowing PUT requests. If it was an authentication issue, you would get a 401 UNAUTHORIZED status code.

提交回复
热议问题