From c0853452533aa178179c9fe622de782e9cd6a3b9 Mon Sep 17 00:00:00 2001 From: step21 Date: Wed, 17 Jul 2019 15:14:16 +0200 Subject: [PATCH 1/2] Rename 403_csrf.html to 403.html 403.html is the name that django expects, unless it is overriden. 403_csrf is a separate case, which according to django docs and mailing list should get a separate view/template. Fixes #2163 Docs: https://docs.djangoproject.com/en/2.1/ref/csrf/#rejected-requests Mailing list: https://groups.google.com/forum/#!msg/django-developers/O2raF0RVGA0/44-3Jz0jCwAJ Stackoverflow: https://stackoverflow.com/questions/31981239/django-custom-403-template --- .../templates/{403_csrf.html => 403.html} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/{403_csrf.html => 403.html} (100%) diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/403_csrf.html b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/403.html similarity index 100% rename from {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/403_csrf.html rename to {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/403.html From 525739dcb5c89a1a29851f5ade0597b14f25c02d Mon Sep 17 00:00:00 2001 From: step21 Date: Wed, 17 Jul 2019 16:19:11 +0200 Subject: [PATCH 2/2] Update CONTRIBUTORS.rst --- CONTRIBUTORS.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 0f9feea6..a36d59a7 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -108,6 +108,7 @@ Listed in alphabetical order. Eric Groom `@ericgroom`_ Eyad Al Sibai `@eyadsibai`_ Felipe Arruda `@arruda`_ + Florian Idelberger `@step21`_ @windrush Garry Cairns `@garry-cairns`_ Garry Polley `@garrypolley`_ Hamish Durkin `@durkode`_