Browse Source

...

master
jfinn 2 months ago
parent
commit
28818b98cb
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      wsps/views.py

+ 3
- 1
wsps/views.py View File

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

Loading…
Cancel
Save