摘要:
1.编写注册接口 1.1 user/urls.py 中添加路由 urlpatterns = [ path('register/', views.RegisterView.as_view()), # 注册视图, /user/register/ ] 1.2 user/views.py中写注册视图函数 c 阅读全文
posted @ 2020-10-05 20:02
就学45分钟
阅读(741)
评论(0)
推荐(1)
摘要:
1.登录接口 2.刷新接口 3.自定义返回格式 1.JWT安装配置 1.1 安装JWT pip install djangorestframework-jwt==1.11.0 1.2 syl/settings.py 配置jwt载荷中的有效期设置 # jwt载荷中的有效期设置 JWT_AUTH = { 阅读全文
posted @ 2020-10-05 17:22
就学45分钟
阅读(565)
评论(0)
推荐(1)
摘要:
1.COOKIE使用和优缺点 参考博客:https://www.cnblogs.com/xiaonq/p/11094480.html https://www.cnblogs.com/ppzhang/p/12294798.html 1.1 cookie原理: 用户名+密码 cookie是保存在用户浏览 阅读全文
posted @ 2020-10-05 16:53
就学45分钟
阅读(284)
评论(0)
推荐(0)

浙公网安备 33010602011771号