mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-25 19:14:03 +03:00
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:
parent
842fa01af0
commit
a50f2bee94
|
@ -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 %}
|
Loading…
Reference in New Issue
Block a user