From 185eecd04a84a714f1e5beac1c8790ed5f9f9dd4 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