--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/hdalab/views/renkan.py Thu Jul 03 12:47:04 2014 +0200
@@ -0,0 +1,34 @@
+# -*- coding: utf-8 -*-
+'''
+Created on Jul 01, 2014
+
+@author: tc
+'''
+from django.conf import settings
+from django.http.response import HttpResponse
+from django.views.generic import View
+from django.views.decorators.csrf import csrf_exempt
+import json
+import itertools
+import uuid
+
+import logging
+logger = logging.getLogger(__name__)
+
+
+class RenkanGetPut(View):
+
+ @csrf_exempt
+ def dispatch(self, *args, **kwargs):
+ return super(RenkanGetPut, self).dispatch(*args, **kwargs)
+
+ def get(self, request):
+ file_path = settings.JSON_TEST_PATH
+ content = open(file_path,"r")
+
+ return HttpResponse(content, content_type="application/json")
+
+
+ def put(self, request):
+
+ return HttpResponse("OK")