DEV Community

loading...

Django: What version do I have?

Adam Lombard (he/him)
Novelist & developer.
Updated on ・1 min read

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

Discussion (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 (he/him) Author • Edited

Much easier! Thanks for the tip!

Collapse
eyupcelebi78 profile image
eyupcelebi78

great post thanks

Collapse
adamlombard profile image
Adam Lombard (he/him) Author

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
Adam Lombard (he/him) Author • Edited
Collapse
mccurcio profile image
Matt Curcio

Do you use Anaconda? What about Jupyter Notebooks?

Collapse
adamlombard profile image
Adam Lombard (he/him) Author • Edited

I do not, sorry. :)