git://git.onelab.eu
/
unfold.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a602b50
)
Footer: rest portal_version
author
Loic Baron
<loic.baron@lip6.fr>
Mon, 4 May 2015 09:28:44 +0000
(11:28 +0200)
committer
Loic 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]
patch
|
blob
diff --git a/rest/portal_version.py
b/rest/portal_version.py
new file mode 100644
(file)
index 0000000..
9cce308
--- /dev/null
+++ b/
rest/portal_version.py
@@ -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")