X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8132fc186eb0c5fd02c86828c3a4735754296d02..5913c54d19b8f6775633176032161d49f9b2f1aa:/redakcja/context_processors.py?ds=sidebyside diff --git a/redakcja/context_processors.py b/redakcja/context_processors.py deleted file mode 100644 index 5e3372ea..00000000 --- a/redakcja/context_processors.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 - -def settings(request): - from django.conf import settings - - 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 = '' - - return { - 'MEDIA_URL': settings.MEDIA_URL, - 'STATIC_URL': settings.STATIC_URL, - 'APP_VERSION': VERSION, - }