Wednesday, April 18, 2012

[Django] Know Your Django Version

There are cases where you want to know what version of Django was installed in your machine.
Here's how to know such:
import django
django.VERSION
note that VERSION are all in capital letters

Result:
(1, 4, 0, 'final', 0)


By the way, in case you want to know what's the latest version
import django
django.get_version()

Result:
'1.4'

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...