- 博客(2)
- 收藏
- 关注
原创 django模板
模板语言包括4种类型,分别是:变量、标签、过滤器、注释。变量语法:{{变量}}{{ type.type }} 代表type_list的某个属性标签语法:{%代码段%}{%for item in mylist%}{{item}}{%endfor%}内置标签查看:https://www.h5w3.com/doc/django-docs-2.0-zh-hans/过滤器语法:变量|过滤器:参数过滤器主要是对变量的内容进行处理,如替换、反序和转义等。{{ variable | filter |
2020-07-14 19:38:06 128
转载 django settings
“”"Django settings for cyz_music project.Generated by ‘django-admin startproject’ using Django 3.0.8.For more information on this file, seehttps://docs.djangoproject.com/en/3.0/topics/settings/For the full list of settings and their values, seehttps:
2020-07-09 18:15:07 98
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人