Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

request.html 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {% load i18n %}
  2. <h4>{% trans "View information" %}</h4>
  3. <table>
  4. <thead>
  5. <tr>
  6. <th>{% trans "View function" %}</th>
  7. <th>{% trans "Arguments" %}</th>
  8. <th>{% trans "Keyword arguments" %}</th>
  9. <th>{% trans "URL name" %}</th>
  10. </tr>
  11. </thead>
  12. <tbody>
  13. <tr class="djDebugOdd">
  14. <td><code>{{ view_func }}</code></td>
  15. <td><code>{{ view_args|pprint }}</code></td>
  16. <td><code>{{ view_kwargs|pprint }}</code></td>
  17. <td><code>{{ view_urlname }}</code></td>
  18. </tr>
  19. </tbody>
  20. </table>
  21. {% if cookies %}
  22. <h4>{% trans "Cookies" %}</h4>
  23. <table>
  24. <colgroup>
  25. <col class="djdt-width-20">
  26. <col>
  27. </colgroup>
  28. <thead>
  29. <tr>
  30. <th>{% trans "Variable" %}</th>
  31. <th>{% trans "Value" %}</th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. {% for key, value in cookies %}
  36. <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
  37. <td><code>{{ key|pprint }}</code></td>
  38. <td><code>{{ value|pprint }}</code></td>
  39. </tr>
  40. {% endfor %}
  41. </tbody>
  42. </table>
  43. {% else %}
  44. <h4>{% trans "No cookies" %}</h4>
  45. {% endif %}
  46. {% if session %}
  47. <h4>{% trans "Session data" %}</h4>
  48. <table>
  49. <colgroup>
  50. <col class="djdt-width-20">
  51. <col>
  52. </colgroup>
  53. <thead>
  54. <tr>
  55. <th>{% trans "Variable" %}</th>
  56. <th>{% trans "Value" %}</th>
  57. </tr>
  58. </thead>
  59. <tbody>
  60. {% for key, value in session %}
  61. <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
  62. <td><code>{{ key|pprint }}</code></td>
  63. <td><code>{{ value|pprint }}</code></td>
  64. </tr>
  65. {% endfor %}
  66. </tbody>
  67. </table>
  68. {% else %}
  69. <h4>{% trans "No session data" %}</h4>
  70. {% endif %}
  71. {% if get %}
  72. <h4>{% trans "GET data" %}</h4>
  73. <table>
  74. <colgroup>
  75. <col class="djdt-width-20">
  76. <col>
  77. </colgroup>
  78. <thead>
  79. <tr>
  80. <th>{% trans "Variable" %}</th>
  81. <th>{% trans "Value" %}</th>
  82. </tr>
  83. </thead>
  84. <tbody>
  85. {% for key, value in get %}
  86. <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
  87. <td><code>{{ key|pprint }}</code></td>
  88. <td><code>{{ value|pprint }}</code></td>
  89. </tr>
  90. {% endfor %}
  91. </tbody>
  92. </table>
  93. {% else %}
  94. <h4>{% trans "No GET data" %}</h4>
  95. {% endif %}
  96. {% if post %}
  97. <h4>{% trans "POST data" %}</h4>
  98. <table>
  99. <colgroup>
  100. <col class="djdt-width-20">
  101. <col>
  102. </colgroup>
  103. <tr>
  104. <th>{% trans "Variable" %}</th>
  105. <th>{% trans "Value" %}</th>
  106. </tr>
  107. </thead>
  108. <tbody>
  109. {% for key, value in post %}
  110. <tr class="{% cycle 'row1' 'row2' %}">
  111. <td><code>{{ key|pprint }}</code></td>
  112. <td><code>{{ value|pprint }}</code></td>
  113. </tr>
  114. {% endfor %}
  115. </tbody>
  116. </table>
  117. {% else %}
  118. <h4>{% trans "No POST data" %}</h4>
  119. {% endif %}