/
doc.html
119 lines (109 loc) · 4.08 KB
/
doc.html
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
117
118
119
{% extends "base_docs.html" %}
{% block title %}{{ doc.title|striptags|safe }} | Django documentation{% endblock %}
{% block extrahead %}
{{ block.super }}
<link rel="stylesheet" href="{{ MEDIA_URL }}css/docs/docs.css" type="text/css" />
<link rel="stylesheet" href="{{ MEDIA_URL }}css/pygments.css" type="text/css" />
{% endblock %}
{% block billboard %}
<h2><a href="{% url document-index lang=lang, version=version %}">Django documentation</a></h2>
{% endblock %}
{% block content %}
{% block body %}
{% load docs %}
{% get_all_doc_versions docurl as versions %}
<h2 class="deck">
{% if version == "dev" %}
This document is for Django's development version, which can be
significantly different from previous releases. Get older docs here:
{% for version in versions %}
{% if version != "dev" %}
<a href="{% url document-detail lang=lang, version=version, url=docurl %}">
{{ version }}</a>{% if forloop.last %}.{% else %},{% endif %}
{% endif %}
{% endfor %}
{% else %}
This document describes Django {{ version }}. For development docs,
<a href="{% url document-detail lang=lang, version="dev", url=docurl %}">go here</a>.
{% endif %}
</h2>
{{ doc.body|safe }}
{% endblock %}
<div id="content-secondary">
<h2 id="comments">Questions/Feedback</h2>
<p>Having trouble? We'd like to help!</p>
<ul>
<li>
Try the <a href="{% url document-detail lang=lang, version=version, url="faq" %}">FAQ</a>
-— it's got answers to many common questions.
</li>
<li>
Search for information in the <a
href="http://groups.google.com/group/django-users/">archives of the
django-users mailing list</a>, or <a
href="http://groups.google.com/group/django-users/">post a question</a>.
</li>
<li>
Ask a question in the <a href="irc://irc.freenode.net/">#django IRC
channel</a>, or search the <a href="http://oebfare.com/logger/django/">IRC
logs</a> to see if its been asked before.
</li>
<li>
If you notice errors with this documentation, please <a
href="http://code.djangoproject.com/simpleticket?component=Documentation">
open a ticket</a> and let us know! Please only use the ticket tracker for
criticisms and improvements on the docs. For tech support, use the
resources above.
</li>
</ul>
</div>
{% endblock %}
{% block content-related %}
{% block search %}
<h2>Search</h2>
{% load docs %}
{% search_form %}
{% endblock %}
{% block toc-wrapper %}
<h2>Contents</h2>
{% block toc %}
{{ doc.toc|safe }}
{% endblock %}
{% endblock %}
{% block browse-wrapper %}
<h2>Browse</h2>
<ul>
{% block browse %}
{% if doc.prev %}
<li>Prev: <a href="{{ doc.prev.link }}">{{ doc.prev.title|safe }}</a></li>
{% endif %}
{% if doc.next %}
<li>Next: <a href="{{ doc.next.link }}">{{ doc.next.title|safe }}</a></li>
{% endif %}
<li><a href="{% url document-detail lang=lang, version=version, url="contents" %}">Table of contents</a></li>
{% for doc, title, accesskey, shorttitle in env.rellinks %}
<li><a href="{% url document-detail lang=lang, version=version, url=doc %}">{{ title }}</a></li>
{% endfor %}
{% endblock %}
</ul>
{% endblock %}
{% block breadcrumbs-wrapper %}
<h2>You are here:</h2>
<ul>
{% block breadcrumbs %}
<li>
<a href="{% url document-index lang=lang, version=version %}">Django {{ version }} documentation</a>
{% for p in doc.parents %}
<ul><li><a href="{{ p.link }}">{{ p.title|safe }}</a>
{% endfor %}
<ul><li>{% block current-page-title %}{{ doc.title|safe }}{% endblock %}</li></ul>
{% for p in doc.parents %}</li></ul>{% endfor %}
</li>
{% endblock %}
</ul>
{% endblock %}
{% block last-update-wrapper %}
<h3>Last update:</h3>
<div>{{ update_date|date:"F j, Y, P" }} (<a href="http://www.timeanddate.com/worldclock/city.html?n=64">CDT</a>)</div>
{% endblock %}
{% endblock %}