Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know what django version i use? is it 1.0, 1.1, or 1.2?

Tags:

python

django

this is the first time i use django. I'm really a beginner. And this is the first time i see the page "It worked! Congratulations on your first Django-powered page.". it's mean i'm now have a django+python in my xampp server. So i cam to the question ?

  1. How to know what django version i use? is it 1.0, 1.1, or 1.2 ?
  2. where i can read it in my django folder (a file name) and how i can use code/function to print the django version ?
  3. is there any subtitute for phpinfo() in python ?
like image 417
justjoe Avatar asked Nov 11 '10 06:11

justjoe


People also ask

What Django version should I use?

What Python version should I use with Django? ¶ Since newer versions of Python are often faster, have more features, and are better supported, the latest version of Python 3 is recommended.

How do I install different versions of Django?

If you want to install a specific Django version, then you use the exact same command but you add something at the end, which is you define the version that you want to use, so a double equal sign ( == ) and then a version number is going to make pip install that specific version of Django.


1 Answers

As to your first question:


jcomeau@intrepid:/usr/src/unternet$ python
Python 2.6.6 (r266:84292, Oct  9 2010, 11:40:09) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.get_version()
'1.2.3'
like image 173
jcomeau_ictx Avatar answered Sep 22 '22 16:09

jcomeau_ictx