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


Question

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 ?
1
16
11/11/2010 6:06:39 AM

Accepted Answer

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'
36
11/11/2010 6:10:17 AM

import django
django.VERSION

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon