Django: What version do I have?

adamlombard

Adam Lombard

Posted on May 6, 2020

Django: What version do I have?

Here's how to see what version of Django you're using:

  • Make sure you're in the virtual environment for your project.
  • At the terminal prompt, open the Python shell:
$ python
Enter fullscreen mode Exit fullscreen mode
  • In the Python shell, import the Django module and check the version:
>>> import django
>>> django.__version__
'2.2.9'
Enter fullscreen mode Exit fullscreen mode

Edit: User @biplov pointed out that there's an even easier way to see your Django version right from your terminal prompt:

$ django-admin --version 
Enter fullscreen mode Exit fullscreen mode

Was this helpful? Did I save you some time?

🫖 Buy Me A Tea! ☕️


💖 💪 🙅 🚩
adamlombard
Adam Lombard

Posted on May 6, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related