django restframework-simplejwt默认是通过调用django的
一、找到simplejwt的settings文件中的DEFAULTS中添加字段
三、在seralizers和authentication中注释掉django的
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240803130933255-1404888097.jpg)
get_user_model
方法来得到验证表的表名,然后再通过查询id来验证是否有这个用户.'TOKEN_AUTH_USER_MODEL': 'auth.User',
get_user_model
方法,导入user_model文件中自己写的get_user_model
方法