模板
Django’s template engine provides a powerful mini-language for defining the user-facing layer of your application, encouraging a clean separation of application and presentation logic. Templates can be maintained by anyone with an understanding of HTML; no knowledge of Python is required. For introductory material, see 模板 topic guide.
- The Django template language
- Built-in template tags and filters
- The Django template language: for Python programmers
参见
For information on writing your own custom tags and filters, see 自定义模板(template)的标签(tags)和过滤器(filters).
To learn how to override templates in other Django applications, see 复写模板.