diff --git a/docs/conf.py b/docs/conf.py index 64f4ab934..b8ff46164 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -29,6 +29,9 @@ if not on_rtd: # only import and set the theme if we're building docs locally # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath('..')) +# Get Wagtail version +from wagtail.wagtailcore import __version__ + # Autodoc may need to import some models modules which require django settings # be configured os.environ['DJANGO_SETTINGS_MODULE'] = 'wagtail.tests.settings' @@ -70,9 +73,9 @@ copyright = u'2014, Torchbox' # built documents. # # The short X.Y version. -version = '0.5' +version = __version__ # The full version, including alpha/beta/rc tags. -release = '0.5' +release = __version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/setup.py b/setup.py index abd6bb61e..08b7dfd1b 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,8 @@ import sys +from wagtail.wagtailcore import __version__ + try: from setuptools import setup, find_packages @@ -47,7 +49,7 @@ if not PY3: setup( name='wagtail', - version='0.5', + version=__version__, description='A Django content management system focused on flexibility and user experience', author='Matthew Westcott', author_email='matthew.westcott@torchbox.com', diff --git a/wagtail/wagtailadmin/templates/wagtailadmin/base.html b/wagtail/wagtailadmin/templates/wagtailadmin/base.html index c7a89def7..130fe47d6 100644 --- a/wagtail/wagtailadmin/templates/wagtailadmin/base.html +++ b/wagtail/wagtailadmin/templates/wagtailadmin/base.html @@ -1,10 +1,10 @@ {% extends "wagtailadmin/admin_base.html" %} -{% load wagtailadmin_tags %} +{% load wagtailadmin_tags wagtailcore_tags %} {% load i18n %} {% block furniture %}
{% endif %} -