Fixes an issue where the organization home page would throw a 505 when no projects...
[Melange.git] / app / django / __init__.py
blob0f2eea5d00417772acfec91ff892b9c122928b73
1 VERSION = (1, 1, 0, 'alpha', 0)
3 def get_version():
4 version = '%s.%s' % (VERSION[0], VERSION[1])
5 if VERSION[2]:
6 version = '%s.%s' % (version, VERSION[2])
7 if VERSION[3:] == ('alpha', 0):
8 version = '%s pre-alpha' % version
9 else:
10 version = '%s %s' % (version, VERSION[3])
11 if VERSION[3] != 'final':
12 version = '%s %s' % (version, VERSION[4])
13 from django.utils.version import get_svn_revision
14 svn_rev = get_svn_revision()
15 if svn_rev != u'SVN-unknown':
16 version = "%s %s" % (version, svn_rev)
17 return version