|
@@ -6,6 +6,8 @@ from django.template import Template, RequestContext
|
6
|
6
|
|
7
|
7
|
import inspect
|
8
|
8
|
|
|
9
|
+from django.views.decorators.csrf import csrf_exempt
|
|
10
|
+
|
9
|
11
|
# from wsps.tasks_loop import *
|
10
|
12
|
|
11
|
13
|
# wsps.
|
|
@@ -61,8 +63,8 @@ def fn_v2(request,*a,**kw):
|
61
|
63
|
csrf_token = get_token(request)
|
62
|
64
|
csrf_token_html = '...<input type="hidden" name="csrfmiddlewaretoken" value="{}" />'.format(csrf_token)
|
63
|
65
|
|
64
|
|
- return render(request,"index.html")
|
65
|
66
|
return HttpResponse(csrf_token_html)
|
|
67
|
+ return render(request,"index.html")
|
66
|
68
|
# return render("index.html","index.html")
|
67
|
69
|
template = Template(arbitrary_string_as_template)
|
68
|
70
|
context = RequestContext(request)
|