Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check Django version

Tags:

python

django

I have to use Python and Django for our application. So I have two versions of Python, 2.6 and 2.7. Now I have installed Django. I could run the sample application for testing Django succesfuly. But how do I make sure whether Django uses the 2.6 or 2.7 version and what version of modules Django uses?

like image 839
maheshgupta024 Avatar asked Jun 24 '11 13:06

maheshgupta024


People also ask

How do I get Django version in Pycharm?

If you cannot print the Django version from the python console in Pycharm, go to settings>Project:project_name>project Interpreter and from the list of installed packages see the installed Django and it's version for that project.


1 Answers

Django 1.5 supports Python 2.6.5 and later.

If you're under Linux and want to check the Python version you're using, run python -V from the command line.

If you want to check the Django version, open a Python console and type

>>> import django >>> django.VERSION (2, 0, 0, 'final', 0) 
like image 188
bcoughlan Avatar answered Sep 21 '22 13:09

bcoughlan