Footer: rest portal_version
authorLoic Baron <loic.baron@lip6.fr>
Mon, 4 May 2015 09:28:44 +0000 (11:28 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Mon, 4 May 2015 09:28:44 +0000 (11:28 +0200)
rest/portal_version.py [new file with mode: 0644]

diff --git a/rest/portal_version.py b/rest/portal_version.py
new file mode 100644 (file)
index 0000000..9cce308
--- /dev/null
@@ -0,0 +1,12 @@
+from django.http                    import HttpResponse
+from portal.actions import clear_user_creds
+
+from myslice.settings import PORTAL_VERSION
+
+import json
+
+def dispatch(request):
+    
+    ret = PORTAL_VERSION.replace('\n','')
+    
+    return HttpResponse(json.dumps(ret), content_type="application/json")