Loading

摘要: ## 权限、认证源码(了解) ### 权限源码 ```python # 继承了APIView才有的 》执行流程 》dispatch中的三大认证 self.initial(request, *args, **kwargs) # 1. APIView的dispatch中self.initial(requ 阅读全文
posted @ 2023-05-25 22:29 程序猿小Ma 阅读(40) 评论(0) 推荐(0) 编辑
摘要: ## Django转换器、配置文件作用 ```python # django转换器 2.x以后 为了取代re_path int path('books/') >/books/1 >pk=1 >当参数传入视图类的方法中 str path('books/') path path('media/',ser 阅读全文
posted @ 2023-05-25 08:32 程序猿小Ma 阅读(77) 评论(0) 推荐(0) 编辑