+
+ if settings.SHOW_APP_VERSION:
+ import subprocess
+ process = subprocess.Popen(["git", "show", "--oneline"], stdout=subprocess.PIPE)
+ data, _err = process.communicate()
+ # get app version
+ VERSION = data.splitlines()[0].split()[0]
+ else:
+ VERSION = ''
+