django · python Finding Django version number October 27, 2008December 6, 2008 sazwqa Simple to find, yet its needed sometimes. Posting just for reference: Open python and do type the following: import django django.VERSION Share this:FacebookXRedditLike Loading... Related Published by sazwqa View all posts by sazwqa Share this:FacebookXRedditLike Loading...
Thanks, this is something so simple (and could have taken a while), I’m glad you said it nice and concisely! Reply
Your page came up as the first in a Google search for this information (“how to find django version”). Thanks for sharing/documenting this information. Reply
You’d be better off using: import django django.get_version() This parses the version number properly and if you’re using a SVN checkout, will display the commit id as well. Reply
yes django.get_version() is a lot friendlier >>> import django >>> django.VERSION (1, 2, 3, ‘final’, 0) >>> django.get_version() ‘1.2.3’ >>> Reply
first type in “python” in cmd! then “import django”, and then “django.VERSION” :))) I had some problems untill I figure it out you must type in “python” …Sry I’m a newbie! Reply
Thanks, this is something so simple (and could have taken a while), I’m glad you said it nice and concisely!
thanks – perfect for newbies..
muchas gracias. just what i needed to figure out what version of django aptitude installed.
20 minutes wasted looking for this info in the web. Thanks!
Thanks, it is basic stuff like this that is most often the stumble for new folks!
Your page came up as the first in a Google search for this information (“how to find django version”).
Thanks for sharing/documenting this information.
Perfect. Thanx.
Thank you for this helpful information
You’d be better off using:
import django
django.get_version()
This parses the version number properly and if you’re using a SVN checkout, will display the commit id as well.
yes
django.get_version()
is a lot friendlier
>>> import django
>>> django.VERSION
(1, 2, 3, ‘final’, 0)
>>> django.get_version()
‘1.2.3’
>>>
manage.py –version also seems to do the trick.
thanks 🙂
first type in “python” in cmd! then “import django”, and then “django.VERSION” :))) I had some problems untill I figure it out you must type in “python” …Sry I’m a newbie!