You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<div class="well see-also">Mako is an implementation of the <a href="/template-engines.html">template engines</a> concept. Learn more in the <a href="/web-development.html">web development</a> chapter or view the <a href="/table-of-contents.html">table of contents</a> for all topics.</div>
<h2>What's the difference between a "project template" and Django templates?</h2>
4232
+
<p>A project template contains the files and code to start a new web application.
4233
+
For example, when you run <code>django-admin.py startproject abc</code>, the Django
4234
+
admin script creates a new <code>abc</code> directory along with several Python
4235
+
configuration so the web app can be run by a <a href="/wsgi-servers.html">WSGI server</a>.</p>
4236
+
<p>Django templates are different from a project template because they live
4237
+
within a project and are written by the developer to generate output, most
4238
+
commonly HTML.</p>
4239
+
<div class="well see-also">Django templates are an implementation of the <a href="/template-engines.html">template engines</a> concept. Learn more in the <a href="/web-development.html">web development</a> chapter or view the <a href="/table-of-contents.html">table of contents</a> for all topics.</div>
4198
4240
<h1>Web Design</h1>
4199
4241
<p>Web design is the creation of a web application's style and user interaction
<metaname="description" content="Django has its own template engine similar to Jinja but with minor differences and is referred to as Django templates.">
9
+
<metaname="description" content="Django has its own template engine referred to as Django templates and is similar to Jinja with some minor differences.">
10
10
<title>Django Templates - Full Stack Python</title>
11
11
<linkhref="/f.css" rel="stylesheet">
12
12
<linkrel="shortcut icon" href="/img/fsp-fav.png">
@@ -37,6 +37,19 @@
37
37
</div><divclass="row">
38
38
<divclass="col-md-8">
39
39
<h1>Django Templates</h1>
40
+
<p>The <ahref="/django.html">Django web framework</a> contains its own
41
+
<ahref="/template-engines.html">template engine</a> for generating HTML, XML and other
<h2>What's the difference between a "project template" and Django templates?</h2>
45
+
<p>A project template contains the files and code to start a new web application.
46
+
For example, when you run <code>django-admin.py startproject abc</code>, the Django
47
+
admin script creates a new <code>abc</code> directory along with several Python
48
+
configuration so the web app can be run by a <ahref="/wsgi-servers.html">WSGI server</a>.</p>
49
+
<p>Django templates are different from a project template because they live
50
+
within a project and are written by the developer to generate output, most
51
+
commonly HTML.</p>
52
+
<divclass="well see-also">Django templates are an implementation of the <ahref="/template-engines.html">template engines</a> concept. Learn more in the <ahref="/web-development.html">web development</a> chapter or view the <ahref="/table-of-contents.html">table of contents</a> for all topics.</div>
40
53
<h3>Learn more about template engines or another topic?</h3>
<divclass="well see-also">Mako is an implementation of the <ahref="/template-engines.html">template engines</a> concept. Learn more in the <ahref="/web-development.html">web development</a> chapter or view the <ahref="/table-of-contents.html">table of contents</a> for all topics.</div>
<divclass="well see-also">Mako is an implementation of the <ahref="/template-engines.html">template engines</a> concept. Learn more in the <ahref="/web-development.html">web development</a> chapter or view the <ahref="/table-of-contents.html">table of contents</a> for all topics.</div>
Copy file name to clipboardExpand all lines: source/content/pages/07-web-development/12-django-templates.markdown
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,28 @@ slug: django-templates
4
4
sortorder: 0712
5
5
toc: False
6
6
sidebartitle: Django Templates
7
-
meta: Django has its own template engine similar to Jinja but with minor differences and is referred to as Django templates.
7
+
meta: Django has its own template engine referred to as Django templates and is similar to Jinja with some minor differences.
8
8
9
9
10
10
# Django Templates
11
+
The [Django web framework](/django.html) contains its own
12
+
[template engine](/template-engines.html) for generating HTML, XML and other
13
+
output formats.
14
+
15
+
<ahref="https://docs.djangoproject.com/en/dev/topics/templates/"style="border: none;"><imgsrc="/source/static/img/logos/django.png"width="100%"alt="Django web framework logo. Trademark Django Software Foundation."style="border-radius: 5px;"width="100%"class="technical-diagram"></a>
16
+
17
+
18
+
## What's the difference between a "project template" and Django templates?
19
+
A project template contains the files and code to start a new web application.
20
+
For example, when you run `django-admin.py startproject abc`, the Django
21
+
admin script creates a new `abc` directory along with several Python
22
+
configuration so the web app can be run by a [WSGI server](/wsgi-servers.html).
23
+
24
+
Django templates are different from a project template because they live
25
+
within a project and are written by the developer to generate output, most
26
+
commonly HTML.
27
+
28
+
<divclass="well see-also">Django templates are an implementation of the <ahref="/template-engines.html">template engines</a> concept. Learn more in the <ahref="/web-development.html">web development</a> chapter or view the <ahref="/table-of-contents.html">table of contents</a> for all topics.</div>
0 commit comments