DEV Community

Adam Lombard
Adam Lombard

Posted on • Updated on

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

Top comments (8)

Collapse
 
biplov profile image
Biplov

You can also use the following terminal commands to check Django version:

$ django-admin --version 

or

$ django-admin.py version
Collapse
 
adamlombard profile image
Adam Lombard • Edited

Much easier! Thanks for the tip!

Collapse
 
eyupcelebi78 profile image
eyupcelebi78

great post thanks

Collapse
 
adamlombard profile image
Adam Lombard

You're welcome! 🙂

Collapse
 
mccurcio profile image
Matt Curcio

PS. I like your github:List of Companies that Hire Jr Devs for Remote Positions
Not that I prefer Remote posts but I am looking now.
Thanks

Collapse
 
adamlombard profile image
Collapse
 
mccurcio profile image
Matt Curcio

Do you use Anaconda? What about Jupyter Notebooks?

Collapse
 
adamlombard profile image
Adam Lombard • Edited

I do not, sorry. :)