摘要:
elasticsearch-head是els的界面插件,地址https://github.com/mobz/elasticsearch-head 1.进入github并下载 2.解压 3.下载node https://nodejs.org/en/download/ 4.配置node环境变量 5.np
阅读全文
posted @ 2019-04-10 11:36
chester·chen
阅读(590)
推荐(1)
摘要:
1.安装java jdk [elsearch@localhost bin]$ java -version openjdk version "1.8.0_181" OpenJDK Runtime Environment (build 1.8.0_181-b13) OpenJDK 64-Bit Serv
阅读全文
posted @ 2019-04-10 10:56
chester·chen
阅读(794)
推荐(1)
摘要:
可以通过重写get_permissions方法和get_serializers_class方法来实现动态的配置权限和序列化 VIewDemo
阅读全文
posted @ 2019-04-06 18:01
chester·chen
阅读(773)
推荐(0)
摘要:
lookup_filed可以改变retrive查询时默认以pk查询的逻辑
阅读全文
posted @ 2019-04-06 15:46
chester·chen
阅读(858)
推荐(0)
摘要:
https://www.django-rest-framework.org/api-guide/permissions/#custom-permissions PS:可以在view中配置authtication_classes,来指明特定的接口需要授权
阅读全文
posted @ 2019-04-06 15:28
chester·chen
阅读(809)
推荐(0)
摘要:
联合唯一可以使用django中的unique_together,和DRF中的UniqueTogetherValidator->https://www.django-rest-framework.org/api-guide/validators/#uniquetogethervalidator uni
阅读全文
posted @ 2019-04-06 15:08
chester·chen
阅读(1617)
推荐(0)
摘要:
VIewDemo SerializerDemo
阅读全文
posted @ 2019-04-06 11:39
chester·chen
阅读(619)
推荐(0)
摘要:
view demo serializerDemo
阅读全文
posted @ 2019-04-05 19:54
chester·chen
阅读(753)
推荐(0)
摘要:
新建Backend类 配置settings
阅读全文
posted @ 2019-04-05 17:22
chester·chen
阅读(993)
推荐(0)
摘要:
建议使用djangorestframework-jwt或者djangorestframework_simplejwt,文档为 https://github.com/GetBlimp/django-rest-framework-jwt https://github.com/davesque/djang
阅读全文
posted @ 2019-04-05 16:34
chester·chen
阅读(953)
推荐(0)