-# -*- coding: utf-8
+# -*- coding: utf-8 -*-
+import sys
+
def settings(request):
from django.conf import settings
import subprocess
process = subprocess.Popen(["git", "show", "--oneline"], stdout=subprocess.PIPE)
data, _err = process.communicate()
- # get app version
+ # get app version
VERSION = data.splitlines()[0].split()[0]
else:
VERSION = ''
'DEBUG': settings.DEBUG,
'RAVEN_CONFIG': getattr(settings, 'RAVEN_CONFIG'),
'APP_VERSION': VERSION,
+ 'FS_ENC': sys.getfilesystemencoding(),
}