0 votes
1 view
in Python by (47.8k points)

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 successfully. But how do I make sure whether Django uses the 2.6 or 2.7 version and what version of modules Django uses?

1 Answer

0 votes
by (107k points)

The Django version 1.5 supports Python 2.6.5 and later versions of Python.

If you're using Linux and want to check what Python version you're using, then you can run the following command on the command line:-

 python -V 

To check Django version, via Python code, you need to run the following piece of code into your Python console:-

import django

django.VERSION 

image

Related questions

0 votes
1 answer
asked Oct 11, 2019 in Python by Sammy (47.8k points)
0 votes
1 answer
asked Oct 12, 2019 by Rajesh Malhotra (15.9k points)
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...