Tech stuff and info dump

How to find out which version of django you’re running (linux, ubuntu)

September 12th, 2011

At the command line, type:

python

Once you’re running python, type:


import django
django.get_version()

You’ll get an output like:


'1.1.1'

which tells you you’re running Django version 1.1.l…although hopefully you’ll be running a newer version! : )

(In Ubuntu 10.10 and others, you can get to a command line prompt by selecting Application -> Accessories -> Terminal from the desktop toolbar.)


Filed under: django,python
Tags:
September 12th, 2011 11:22:37