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.

headers.html 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {% load i18n %}
  2. <h4>{% trans "Request headers" %}</h4>
  3. <table>
  4. <thead>
  5. <tr>
  6. <th>{% trans "Key" %}</th>
  7. <th>{% trans "Value" %}</th>
  8. </tr>
  9. </thead>
  10. <tbody>
  11. {% for key, value in request_headers.items %}
  12. <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
  13. <td>{{ key|escape }}</td>
  14. <td>{{ value|escape }}</td>
  15. </tr>
  16. {% endfor %}
  17. </tbody>
  18. </table>
  19. <h4>{% trans "Response headers" %}</h4>
  20. <table>
  21. <thead>
  22. <tr>
  23. <th>{% trans "Key" %}</th>
  24. <th>{% trans "Value" %}</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. {% for key, value in response_headers.items %}
  29. <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
  30. <td>{{ key|escape }}</td>
  31. <td>{{ value|escape }}</td>
  32. </tr>
  33. {% endfor %}
  34. </tbody>
  35. </table>
  36. <h4>{% trans "WSGI environ" %}</h4>
  37. <p>{% trans "Since the WSGI environ inherits the environment of the server, only a significant subset is shown below." %}</p>
  38. <table>
  39. <thead>
  40. <tr>
  41. <th>{% trans "Key" %}</th>
  42. <th>{% trans "Value" %}</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {% for key, value in environ.items %}
  47. <tr class="{% cycle 'djDebugOdd' 'djDebugEven' %}">
  48. <td>{{ key|escape }}</td>
  49. <td>{{ value|escape }}</td>
  50. </tr>
  51. {% endfor %}
  52. </tbody>
  53. </table>