CSRF ACTUALLY fixed, branches mixed up previously
This commit is contained in:
1 parent
0c940f2616
commit
3d11e66df7
6 files changed
+16
-12
No files matched your search
@@ -36,9 +36,8 @@ def home(request):
|
||||
|
||||
return render(request, 'home.html', context)
|
||||
|
||||
@cache_page(CACHE_TTL)
|
||||
#@cache_page(CACHE_TTL)
|
||||
def about(request):
|
||||
form = SubscribersForm(request.POST)
|
||||
if request.method == 'POST':
|
||||
form = SubscribersForm(request.POST)
|
||||
if form.is_valid():
|
||||
@@ -62,4 +61,4 @@ def robots_txt(require_GET):
|
||||
|
||||
def sitemap(request):
|
||||
return render(request,sitemap,section=None,template_name='sitemap.xml',content_type='application/xml',)
|
||||
|
||||
|
||||
Reference in new issue
Block a user