123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- {% load i18n %}
-
- <h4>{% trans "View information" %}</h4>
- <table>
- <thead>
- <tr>
- <th>{% trans "View function" %}</th>
- <th>{% trans "Arguments" %}</th>
- <th>{% trans "Keyword arguments" %}</th>
- <th>{% trans "URL name" %}</th>
- </tr>
- </thead>
- <tbody>
- <tr class="djDebugOdd">
- <td><code>{{ view_func }}</code></td>
- <td><code>{{ view_args|pprint }}</code></td>
- <td><code>{{ view_kwargs|pprint }}</code></td>
- <td><code>{{ view_urlname }}</code></td>
- </tr>
- </tbody>
- </table>
-
- {% if cookies %}
- <h4>{% trans "Cookies" %}</h4>
- <table>
- <colgroup>
- <col class="djdt-width-20">
- <col>
- </colgroup>
- <thead>
- <tr>
- <th>{% trans "Variable" %}</th>
- <th>{% trans "Value" %}</th>
- </tr>
- </thead>
- <tbody>
- {% for key, value in cookies %}
- <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
- <td><code>{{ key|pprint }}</code></td>
- <td><code>{{ value|pprint }}</code></td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% else %}
- <h4>{% trans "No cookies" %}</h4>
- {% endif %}
-
- {% if session %}
- <h4>{% trans "Session data" %}</h4>
- <table>
- <colgroup>
- <col class="djdt-width-20">
- <col>
- </colgroup>
- <thead>
- <tr>
- <th>{% trans "Variable" %}</th>
- <th>{% trans "Value" %}</th>
- </tr>
- </thead>
- <tbody>
- {% for key, value in session %}
- <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
- <td><code>{{ key|pprint }}</code></td>
- <td><code>{{ value|pprint }}</code></td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% else %}
- <h4>{% trans "No session data" %}</h4>
- {% endif %}
-
- {% if get %}
- <h4>{% trans "GET data" %}</h4>
- <table>
- <colgroup>
- <col class="djdt-width-20">
- <col>
- </colgroup>
- <thead>
- <tr>
- <th>{% trans "Variable" %}</th>
- <th>{% trans "Value" %}</th>
- </tr>
- </thead>
- <tbody>
- {% for key, value in get %}
- <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
- <td><code>{{ key|pprint }}</code></td>
- <td><code>{{ value|pprint }}</code></td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% else %}
- <h4>{% trans "No GET data" %}</h4>
- {% endif %}
-
- {% if post %}
- <h4>{% trans "POST data" %}</h4>
- <table>
- <colgroup>
- <col class="djdt-width-20">
- <col>
- </colgroup>
- <tr>
- <th>{% trans "Variable" %}</th>
- <th>{% trans "Value" %}</th>
- </tr>
- </thead>
- <tbody>
- {% for key, value in post %}
- <tr class="{% cycle 'row1' 'row2' %}">
- <td><code>{{ key|pprint }}</code></td>
- <td><code>{{ value|pprint }}</code></td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% else %}
- <h4>{% trans "No POST data" %}</h4>
- {% endif %}
|