复习django项目三——视图显示模板templates

1.在项目根目录建立templates文件夹,并在setting里设置模板路径DIRhtml TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR,'templates')], '
相关文章
相关标签/搜索