Cómo consultar la versión de marco de descanso django
python -c "import rest_framework; print(rest_framework.VERSION)"
Lucky Ladybird
python -c "import rest_framework; print(rest_framework.VERSION)"
>>> import django
>>> django.VERSION
(2, 0, 0, 'final', 0)
#using pip show
(env) $ pip show djangorestframework
...
Version: 3.13.1
...
#using pip freeze
(env) $ pip freeze
...
djangorestframework==3.13.1
...
# using django shell
(env) $ python manage.py shell
>>> import rest_framework
>>> rest_framework.VERSION
'3.13.1'