fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
attachment list for links + bad links in red
[redakcja.git]
/
redakcja
/
context_processors.py
diff --git
a/redakcja/context_processors.py
b/redakcja/context_processors.py
index
5e3372e
..
aae919e
100644
(file)
--- 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
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()
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 = ''
VERSION = data.splitlines()[0].split()[0]
else:
VERSION = ''
@@
-15,5
+17,9
@@
def settings(request):
return {
'MEDIA_URL': settings.MEDIA_URL,
'STATIC_URL': settings.STATIC_URL,
return {
'MEDIA_URL': settings.MEDIA_URL,
'STATIC_URL': settings.STATIC_URL,
+ 'IMAGE_DIR': settings.IMAGE_DIR,
+ 'DEBUG': settings.DEBUG,
+ 'RAVEN_CONFIG': getattr(settings, 'RAVEN_CONFIG'),
'APP_VERSION': VERSION,
'APP_VERSION': VERSION,
+ 'FS_ENC': sys.getfilesystemencoding(),
}
}