08 2018 档案

摘要:1. 两个基类 1)APIView Django REST_framework 中所有视图的基类是APIView 父类是View authentication_classes 列表或元祖,身份认证类 permissoin_classes 列表或元祖,权限检查类 throttle_classes 列表 阅读全文
posted @ 2018-08-25 21:40 Vincent君 阅读(1761) 评论(0) 推荐(0)
摘要:python@ubuntu:~$ mysql -uroot -pmysqlmysql: [Warning] Using a password on the command line interface can be insecure.ERROR 2002 (HY000): Can't connect 阅读全文
posted @ 2018-08-06 00:16 Vincent君 阅读(985) 评论(0) 推荐(0)
摘要:当我们有大量数据要传送时最好的办法是一次发出多个只传递少量信息的Ajax调用时。如果你正用一个Ajax调用发送大量数据,那么最好是结束这种做法,因为这样做并不能节约时间。 因此,需要传送大量数据能成为我们在GET和POST之间犹豫不决的理由吗?这两个方法都是为不同的目的而设计的, 两者的不同也在于其 阅读全文
posted @ 2018-08-01 21:46 Vincent君 阅读(5631) 评论(0) 推荐(1)