src/iconolab/utils/context_processors.py
changeset 151 797460904f77
parent 8 7e49ce535296
child 156 e1e14766f608
--- a/src/iconolab/utils/context_processors.py	Mon Aug 22 12:46:43 2016 +0200
+++ b/src/iconolab/utils/context_processors.py	Tue Aug 23 18:01:08 2016 +0200
@@ -1,4 +1,8 @@
 from django.conf import settings
 
-def notifications(request):
-	return {'notification_nb': '3'}
\ No newline at end of file
+def env(request):
+	try:
+		dev_mode = settings.DEV_MODE
+	except AttributeError:
+		dev_mode = False
+	return {'IS_DEV_MODE': dev_mode}
\ No newline at end of file