【问题标题】:where is "top level of template tree" in Django?Django中的“模板树的顶层”在哪里?
【发布时间】:2020-12-02 12:26:56
【问题描述】:

在 Django 中,我想为我的网站添加一个自定义 404 页面。正如Django documentation 所说,我必须将 404.html 添加到 模板树的顶层。 我想知道它在哪里?

【问题讨论】:

    标签: django django-views


    【解决方案1】:

    templates 目录中。不是templates/products

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-19
      • 2012-04-20
      • 2018-06-16
      • 2010-12-18
      • 1970-01-01
      • 2015-01-30
      • 2014-04-28
      • 1970-01-01
      相关资源
      最近更新 更多