Rearrange source to src dir.
[redakcja.git] / redakcja / context_processors.py
diff --git a/redakcja/context_processors.py b/redakcja/context_processors.py
deleted file mode 100644 (file)
index 5e3372e..0000000
+++ /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,
-    }