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

详细了解模板引擎或其他主题?

什么是 Django Web 框架?

什么是模板引擎,为什么它们有用?

告诉我有关标准关系数据库的信息。

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.