cookiecutter-django/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/templates/403_csrf.html
Imran Rahman a50f2bee94
Display custom 403_csrf.html while getting a csrf error in prod (#4464)
Co-authored-by: Imran Rahman <imranrahman.ix@gmail.com>
2023-07-24 12:41:10 +01:00

15 lines
308 B
HTML

{% 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 %}