{% extends "base.html" %}
工作正常,但我想指向
静态方向。在
给你应用程序yaml公司名称:
- url: /view
static_dir: static/view
以下是main.py
:
错误在这里:
raise TemplateSyntaxError, "Template %r cannot be extended, because it doesn't exist" % parent TemplateSyntaxError: Template 'view/base.html' cannot be extended, because it doesn't exist
您可以浏览到基本.html,但类main()看不到它。在
谢谢你的帮助。在
作为静态资产的文件就是这样,而不是模板。如果要扩展模板,它必须位于模板目录中。在
相关问题 更多 >
编程相关推荐