put 请求,报错如题
其中的url
url(r'books/', views.BookView.as_view()),
path('books/<int:pk>', views.BookView2.as_view())
原因:
第一条url后没加$, put请求被第一条url匹配到, 第一个url是get和put, 所以报错put not allow
- Pycharm读excel文件报错xlrd.biffh.XLRDError: Excel xlsx file not supported
- 题解 ARC140E【Not Equal Rectangle】
- mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
- org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
- Oracle 19c 升级错误【verify_queryable_inventory returned ORA-20001: Latest xml inventory is not loaded into table】
- Flutter 项目运行到ios模拟器报错 : Error (Xcode): SDK does not contain 'libarclite'
- 解决TypeError: string indices must be integers, not str
- ROS2 删除一个工作空间文件夹,source后终端出现not found ...... local_setup.bash解决
- [Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".
- SpringBoot配置报错:Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class
本栏目推荐文章