drf_jwt_token_demo.zip

时间:2020-08-03 21:38:02
【文件属性】:
文件名称:drf_jwt_token_demo.zip
文件大小:22KB
文件格式:ZIP
更新时间:2020-08-03 21:38:02
django token 使用django-rest-framework-jwt在django中创建和认证token,用于在移动端来认证和用户,本文通过自己编写模型来实现根据用户来生成token,在请求头中添加Authentication来进行认证,保持登录状态。可以直接使用,编写过程可以查看本人博客https://blog.csdn.net/lwuis_/article/details/107771954。
【文件预览】:
drf_jwt_token_demo
----drf_jwt_token_demo()
--------__pycache__()
--------wsgi.py(429B)
--------__init__.py(0B)
--------settings.py(3KB)
--------urls.py(890B)
----templates()
----account()
--------models.py(60B)
--------apps.py(94B)
--------utils.py(293B)
--------__pycache__()
--------__init__.py(0B)
--------migrations()
--------views.py(1KB)
--------admin.py(66B)
--------tests.py(63B)
----db.sqlite3(128KB)
----.idea()
--------drf_jwt_token_demo.iml(1KB)
--------misc.xml(304B)
--------modules.xml(295B)
--------workspace.xml(5KB)
--------inspectionProfiles()
----manage.py(565B)

网友评论