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