diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2012-10-26 22:01:34 -0300 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2012-10-26 22:01:34 -0300 |
| commit | 373df56d36891b9ab1f88519bf9e8f3c0b3bb108 (patch) | |
| tree | 948ed69f2c25eb67d7104cbb6efad13fa45ddce0 /docs | |
| parent | 11699ac4b5f98ec11dba02b356a8fd4ab6b4b889 (diff) | |
Advanced version identifiers for 1.6 cycle.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/conf.py | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py index 433fd679a1..6dd84cffba 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -52,11 +52,23 @@ copyright = 'Django Software Foundation and contributors' # built documents. # # The short X.Y version. -version = '1.5' +version = '1.6' # The full version, including alpha/beta/rc tags. -release = '1.5' +try: + from django import VERSION, get_version +except ImportError: + release = version +else: + def django_release(): + pep386ver = get_version() + if VERSION[3:5] == ('alpha', 0) and 'dev' not in pep386ver: + return pep386ver + '.dev' + return pep386ver + + release = django_release() + # The next version to be released -django_next_version = '1.6' +django_next_version = '1.7' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |
