root/django/trunk/django/__init__.py
| Revision 8960, 300 bytes (checked in by ubernostrum, 4 days ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | VERSION = (1, 0, 'final') |
| 2 | |
| 3 | def get_version(): |
| 4 | "Returns the version as a human-format string." |
| 5 | v = '.'.join([str(i) for i in VERSION[:-1]]) |
| 6 | if VERSION[-1]: |
| 7 | from django.utils.version import get_svn_revision |
| 8 | v = '%s-%s-%s' % (v, VERSION[-1], get_svn_revision()) |
| 9 | return v |
Note: See TracBrowser for help on using the browser.
