39๐
โ
JWT is a separate package, so you need to install it via pip install djangorestframework-jwt
.
Note, depending on the version(s) of Python you have installed, you might need to use pip3
instead of pip
if you are trying to use this/install it for Python 3.
See the other answer regarding Simple JWT, which replaced JWT in 2019.
๐คarie
4๐
Be aware that JWT has not been maintained since ~2019. There is a newer project, Simple JWT, that you may use instead, if you need newer features. You can install it with this command:
pip install djangorestframework-simplejwt
๐คbhavin bharathan
- Does changing a django models related_name attribute require a south migration?
- How to describe parameters in DRF Docs
Source:stackexchange.com