~ubuntu-branches/ubuntu/quantal/python-django/quantal

« back to all changes in this revision

Viewing changes to django/views/csrf.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-05-24 22:44:32 UTC
  • mfrom: (1.1.11 upstream) (4.4.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100524224432-lz0tq65rhy8cov3y
Tags: 1.2.1-1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
<html lang="en">
12
12
<head>
13
13
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
 
14
  <meta name="robots" content="NONE,NOARCHIVE">
14
15
  <title>403 Forbidden</title>
 
16
  <style type="text/css">
 
17
    html * { padding:0; margin:0; }
 
18
    body * { padding:10px 20px; }
 
19
    body * * { padding:0; }
 
20
    body { font:small sans-serif; background:#eee; }
 
21
    body>div { border-bottom:1px solid #ddd; }
 
22
    h1 { font-weight:normal; margin-bottom:.4em; }
 
23
    h1 span { font-size:60%; color:#666; font-weight:normal; }
 
24
    #info { background:#f6f6f6; }
 
25
    #info ul { margin: 0.5em 4em; }
 
26
    #info p { padding-top:10px; }
 
27
    #summary { background: #ffc; }
 
28
    #explanation { background:#eee; border-bottom: 0px none; }
 
29
  </style>
15
30
</head>
16
31
<body>
17
 
  <h1>403 Forbidden</h1>
 
32
<div id="summary">
 
33
  <h1>Forbidden <span>(403)</span></h1>
18
34
  <p>CSRF verification failed. Request aborted.</p>
19
 
  {% if DEBUG %}
 
35
</div>
 
36
{% if DEBUG %}
 
37
<div id="info">
20
38
  <h2>Help</h2>
21
39
    {% if reason %}
22
40
    <p>Reason given for failure:</p>
51
69
  and only the initial error message will be displayed.  </p>
52
70
 
53
71
  <p>You can customize this page using the CSRF_FAILURE_VIEW setting.</p>
54
 
  {% else %}
 
72
</div>
 
73
{% else %}
 
74
<div id="explanation">
55
75
  <p><small>More information is available with DEBUG=True.</small></p>
56
 
 
57
 
  {% endif %}
 
76
</div>
 
77
{% endif %}
58
78
</body>
59
79
</html>
60
80
"""