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 django-admin.py 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

Digital Ocean logo.

Easily deploy your Python web apps to Digital Ocean's reliable cloud computing platform.


Okta logo.

Secure and manage identities in your Python web apps with Okta.


Scout logo

Scout monitors the performance of your Python apps, identifying slow queries, memory bloat, and more. Free during Tech Preview.


Real Python logo

Upgrade your Python skills by reading Real Python's awesome programming email newsletter.

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-2018