summaryrefslogtreecommitdiff
path: root/app/django_comments/templates/comments/400-debug.html
blob: af74676b17cb04c8651e222b1d3065915dd2f192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  <title>Comment post not allowed (400)</title>
  <meta name="robots" content="NONE,NOARCHIVE"/>
  <style type="text/css">
    <
    !
    [CDATA[
    html * {
      padding: 0;
      margin: 0;
    }

    body * {
      padding: 10px 20px;
    }

    body * * {
      padding: 0;
    }

    body {
      font: small sans-serif;
      background: #eee;
    }

    body > div {
      border-bottom: 1px solid #ddd;
    }

    h1 {
      font-weight: normal;
      margin-bottom: .4em;
    }

    h1 span {
      font-size: 60%;
      color: #666;
      font-weight: normal;
    }

    table {
      border: none;
      border-collapse: collapse;
      width: 100%;
    }

    td, th {
      vertical-align: top;
      padding: 2px 3px;
    }

    th {
      width: 12em;
      text-align: right;
      color: #666;
      padding-right: .5em;
    }

    #info {
      background: #f6f6f6;
    }

    #info ol {
      margin: 0.5em 4em;
    }

    #info ol li {
      font-family: monospace;
    }

    #summary {
      background: #ffc;
    }

    #explanation {
      background: #eee;
      border-bottom: 0px none;
    }

    ]
    ]
    >
  </style>
</head>
<body>
<div id="summary">
  <h1>Comment post not allowed <span>(400)</span></h1>
  <table class="meta">
    <tr>
      <th>Why:</th>
      <td>{{ why }}</td>
    </tr>
  </table>
</div>
<div id="info">
  <p>
    The comment you tried to post to this view wasn't saved because something
    tampered with the security information in the comment form. The message
    above should explain the problem, or you can check the <a
          href="http://docs.djangoproject.com/en/dev/ref/contrib/comments/">comment
    documentation</a> for more help.
  </p>
</div>

<div id="explanation">
  <p>
    You're seeing this error because you have <code>DEBUG = True</code> in
    your Django settings file. Change that to <code>False</code>, and Django
    will display a standard 400 error page.
  </p>
</div>
</body>
</html>