From 8b3910d52980baa52a3c9603c4699eb10ace99bd Mon Sep 17 00:00:00 2001 From: Alexandre Barbosa Date: Thu, 3 Dec 2015 12:04:22 -0200 Subject: [PATCH] Context_processor to sisp URL --- src/colab-spb-plugin/src/colab_spb/context_processors.py | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) create mode 100644 src/colab-spb-plugin/src/colab_spb/context_processors.py diff --git a/src/colab-spb-plugin/src/colab_spb/context_processors.py b/src/colab-spb-plugin/src/colab_spb/context_processors.py new file mode 100644 index 0000000..3072c1e --- /dev/null +++ b/src/colab-spb-plugin/src/colab_spb/context_processors.py @@ -0,0 +1,5 @@ +from django.conf import settings + + +def sisp_url(request): + return {'SISP_URL': getattr(settings, 'SISP_URL', False)} -- libgit2 0.21.2