how to check django rest framework version

>>> import django
>>> django.VERSION
(2, 0, 0, 'final', 0)

Here is what the above code is Doing:
1. We’re importing the django module.
2. We’re printing the version of Django that we have installed.

If you’re using a virtual environment, make sure that you activate it before you run the code.

If you get an error that says “No module named django”, it means that you don’t have Django installed.

If you get an error that says “No module named ‘django.VERSION'”, it means that you have an old version of Django installed.

If you get an error that says “No module named ‘django.VERSION'”, it means that you have an old version of Django installed.