mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-05-11 06:03:09 +00:00
Merge pull request #2992 from Andrew-Chen-Wang/patch-3
Use exception var in status code pages if available
This commit is contained in:
commit
ddc102d0f1
2 changed files with 2 additions and 2 deletions
|
|
@ -5,5 +5,5 @@
|
|||
{% block content %}
|
||||
<h1>Forbidden (403)</h1>
|
||||
|
||||
<p>CSRF verification failed. Request aborted.</p>
|
||||
<p>{% if exception %}{{ exception }}{% else %}You're not allowed to access this page.{% endif %}</p>
|
||||
{% endblock content %}{% endraw %}
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@
|
|||
{% block content %}
|
||||
<h1>Page not found</h1>
|
||||
|
||||
<p>This is not the page you were looking for.</p>
|
||||
<p>{% if exception %}{{ exception }}{% else %}This is not the page you were looking for.{% endif %}</p>
|
||||
{% endblock content %}{% endraw %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue