~chipaca/unity-lens-video/custom-user-agent

« back to all changes in this revision

Viewing changes to templates/comments/400-debug.html

  • Committer: Janos Gyerik
  • Date: 2012-05-21 18:31:58 UTC
  • Revision ID: janos@axiom-20120521183158-kvtqzuo6yhe3mdzq
added example configuration for logging to file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
<html lang="en">
 
3
<head>
 
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 
5
  <title>Comment post not allowed (400)</title>
 
6
  <meta name="robots" content="NONE,NOARCHIVE" />
 
7
  <style type="text/css">
 
8
    html * { padding:0; margin:0; }
 
9
    body * { padding:10px 20px; }
 
10
    body * * { padding:0; }
 
11
    body { font:small sans-serif; background:#eee; }
 
12
    body>div { border-bottom:1px solid #ddd; }
 
13
    h1 { font-weight:normal; margin-bottom:.4em; }
 
14
    h1 span { font-size:60%; color:#666; font-weight:normal; }
 
15
    table { border:none; border-collapse: collapse; width:100%; }
 
16
    td, th { vertical-align:top; padding:2px 3px; }
 
17
    th { width:12em; text-align:right; color:#666; padding-right:.5em; }
 
18
    #info { background:#f6f6f6; }
 
19
    #info ol { margin: 0.5em 4em; }
 
20
    #info ol li { font-family: monospace; }
 
21
    #summary { background: #ffc; }
 
22
    #explanation { background:#eee; border-bottom: 0px none; }
 
23
  </style>
 
24
</head>
 
25
<body>
 
26
  <div id="summary">
 
27
    <h1>Comment post not allowed <span>(400)</span></h1>
 
28
    <table class="meta">
 
29
      <tr>
 
30
        <th>Why:</th>
 
31
        <td>{{ why }}</td>
 
32
      </tr>
 
33
    </table>
 
34
  </div>
 
35
  <div id="info">
 
36
    <p>
 
37
    The comment you tried to post to this view wasn't saved because something
 
38
    tampered with the security information in the comment form. The message
 
39
    above should explain the problem, or you can check the <a
 
40
    href="http://docs.djangoproject.com/en/dev/ref/contrib/comments/">comment
 
41
    documentation</a> for more help.
 
42
    </p>
 
43
  </div>
 
44
 
 
45
  <div id="explanation">
 
46
    <p>
 
47
      You're seeing this error because you have <code>DEBUG = True</code> in
 
48
      your Django settings file. Change that to <code>False</code>, and Django
 
49
      will display a standard 400 error page.
 
50
    </p>
 
51
  </div>
 
52
</body>
 
53
</html>