5 from django.conf import settings
7 if settings.SHOW_APP_VERSION:
9 process = subprocess.Popen(["git", "show", "--oneline"], stdout=subprocess.PIPE)
10 data, _err = process.communicate()
12 VERSION = data.splitlines()[0].split()[0]
17 'MEDIA_URL': settings.MEDIA_URL,
18 'STATIC_URL': settings.STATIC_URL,
19 'IMAGE_DIR': settings.IMAGE_DIR,
20 'DEBUG': settings.DEBUG,
21 'RAVEN_CONFIG': getattr(settings, 'RAVEN_CONFIG', None),
22 'APP_VERSION': VERSION,