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

37👍

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'

9👍

import django
django.VERSION

2👍

For the third question, you can get the list of available modules from the interpreter prompt:

>>> help()

help> modules

This will (eventually) give you a list of available modules.

For other info, you can use the sys module:

import sys

sys.version # Python version
sys.platform # platform

2👍

For your third question, Python Equivalent to phpinfo()

2👍

python manage.py runserver

Output:

Validating models…

0 errors found
February 27, 2015 – 14:25:41
Django version 1.6.5, using settings …
….

👤Octo

Leave a comment