How to check Django and Python version?

By | April 23, 2019

In this article you will clear up the following questions:

  • how to check django version on Windows
  • how to check django version on Ubuntu
  • how to check python version on Windows
  • how to check python version on Ubuntu

Not to waste your time let’s go to the needed commands 🙂

How to check Python version on Windows?

Open command line (cmd: Win+R) and type the following command:

python -V

How to check Django version on Windows?

Open command line (cmd: Win+R) and when your myvenv is activated, type:

py -m django –version

How to check Python and Django versions on Ubuntu?

Open command line (ctrl+alt+T) and paste the following to find out your python version:

python

To check django version type the next two commands:

import django

django.get_version()

Hope this post helped you, if you still have any questions put them in comments.

Leave a Reply

Your email address will not be published. Required fields are marked *