X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/2cd5a971d3cf9708b43a523a339212cb9220cef3..d5ffd31f4dca5ab0144fae542e048934bafa7110:/redakcja/context_processors.py?ds=sidebyside diff --git a/redakcja/context_processors.py b/redakcja/context_processors.py index aec6df71..aae919e6 100644 --- a/redakcja/context_processors.py +++ b/redakcja/context_processors.py @@ -1,4 +1,6 @@ -# -*- coding: utf-8 +# -*- coding: utf-8 -*- +import sys + def settings(request): from django.conf import settings @@ -7,7 +9,7 @@ def settings(request): 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 = '' @@ -19,4 +21,5 @@ def settings(request): 'DEBUG': settings.DEBUG, 'RAVEN_CONFIG': getattr(settings, 'RAVEN_CONFIG'), 'APP_VERSION': VERSION, + 'FS_ENC': sys.getfilesystemencoding(), }