CSRF ACTUALLY fixed, branches mixed up previously

This commit is contained in:
admin committed 2022-06-16 13:55:23 -04:00
1 parent dcf2f56177
commit fcfc7416a5
7 files changed
+16 -12

No files matched your search

+2 -3
View File
@@ -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',)