mirror of
https://github.com/django/django.git
synced 2025-07-05 18:29:11 +00:00
Add forgotten 'template_debug' template
git-svn-id: http://code.djangoproject.com/svn/django/branches/new-admin@953 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
8694d4b7b8
commit
8fb86e60a1
25
django/conf/admin_templates/template_debug.html
Normal file
25
django/conf/admin_templates/template_debug.html
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{% extends "base_site" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<div>
|
||||||
|
<h2> Error in Template </h2>
|
||||||
|
<pre>
|
||||||
|
{{message}}
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
{%ifnotequal bottom "0"%}
|
||||||
|
.<br/>.<br/>.<br/>
|
||||||
|
{%endifnotequal%}
|
||||||
|
|
||||||
|
<pre class="source">
|
||||||
|
|
||||||
|
{% for source_line in source_lines %}{% ifequal source_line.0 line %}<span class="error">{{source_line.0|rjust:"5"}}:{{ source_line.1}} </span>
|
||||||
|
{% else %}{{source_line.0|rjust:"5"}}:{{ source_line.1 }}
|
||||||
|
{% endifequal %}{% endfor %}
|
||||||
|
</pre>
|
||||||
|
{%ifnotequal top total%}
|
||||||
|
.<br/>.<br/>.<br/>
|
||||||
|
{%endifnotequal%}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user