Display custom 403_csrf.html while getting a csrf error in prod (#4464)

Co-authored-by: Imran Rahman <imranrahman.ix@gmail.com>
This commit is contained in:
Imran Rahman 2023-07-24 17:41:10 +06:00 committed by GitHub
parent 842fa01af0
commit a50f2bee94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,14 @@
{% raw %}{% extends "base.html" %}
{% block title %}Forbidden (403){% endblock title %}
{% block content %}
<h1>Forbidden (403)</h1>
<p>
{% if exception %}
{{ exception }}
{% else %}
You're not allowed to access this page.
{% endif %}
</p>
{% endblock content %}
{%- endraw %}