Create 403_csrf.html

This takes advantage of the ability to easily customize the 403 template for CSRF, introduced in Django 1.10.
This commit is contained in:
Marlon 2016-09-18 12:11:15 -07:00 committed by GitHub
parent a46f3dd56b
commit b2eca1a397

View File

@ -0,0 +1,9 @@
{% raw %}{% extends "base.html" %}
{% block title %}Forbidden (403){% endblock %}
{% block content %}
<h1>Forbidden (403)</h1>
<p>CSRF verification failed. Request aborted.</p>
{% endblock content %}{% endraw %}