print('how do you check your django version in cmd')
Asked
Active
Viewed 3,768 times
0
-
"Your Django version" doesn't make much sense. "The version of Django being used for this project" makes more sense. For that, check whatever dependency file you are using. Unless you mean something installed some other way? Maybe via `pip install --user`? Or `apt`? Please add some details about how you installed Django, and what you actually want to learn. – ChrisGPT was on strike Dec 06 '20 at 03:06
-
This will show you what version is installed in the current environment: `pip3 freeze -l | grep -i django` if it helps. – costaparas Dec 06 '20 at 03:08
-
1I found this related question: https://stackoverflow.com/questions/6468397/how-to-check-django-version – Turtlean Dec 06 '20 at 03:18
-
2Does this answer your question? [How to check Django version](https://stackoverflow.com/questions/6468397/how-to-check-django-version) – ppwater Dec 06 '20 at 03:27
1 Answers
3
You can do this in cmd.
python3 -m django --version
Or this:
python -c "import django; print(django.get_version())"
In python IDLE:
import django
django.get_version()

ppwater
- 2,315
- 4
- 15
- 29