Django Templates

The Django web framework contains its own template engine for generating HTML, XML and other output formats.

Django web framework logo. Trademark Django Software Foundation.

What's the difference between a "project template" and Django templates?

A project template contains the files and code to start a new web application. For example, when you run startproject abc, the Django admin script creates a new abc directory along with several Python configuration so the web app can be run by a WSGI server.

Django templates are different from a project template because they live within a project and are written by the developer to generate output, most commonly HTML.

Django templates are an implementation of the template engines concept. Learn more in the web development chapter or view the table of contents for all topics.

Django template resources

Learn more about template engines or another topic?

What is the Django web framework?

What are template engines and why are they useful?

Tell me about standard relational databases.

Sign up for a monthly email with Full Stack Python tutorials. No spam ever.

Sponsored By

Rollbar logo

Fix errors in your Python code before your users see them by monitoring with Rollbar.

Learn More Python

Introduction to Ansible video course logo.

Deploy web apps with the Ansible configuration management tool.

TestDriven logo

Build microservices with Docker, Flask & React in this great course.

Full Stack Python

Full Stack Python is an open book that explains concepts in plain language and provides helpful resources for those topics.
Updates via newsletter, Twitter & Facebook.

Matt Makai 2012-2019