【问题标题】:How can I debut a templatesyntax error while setting up satchmo?如何在设置 satchmo 时首次出现模板语法错误?
【发布时间】:2013-03-08 16:29:32
【问题描述】:

我正在尝试使用网站中提供的说明安装 satchmo。除了管理部分,一切正常。在我点击http://<SERVER_NAME>/admin 的那一刻,我收到以下错误:

'admin_static' 不是有效的标签库:模板库 找不到 admin_static,试过了 django.templatetags.admin_static,satchmo_store.shop.templatetags.admin_static,django.contrib.admin.templatetags.admin_static,django.contrib.cmets.templatetags.admin_static,sorl.thumbnail.templatetags.admin_static,livesettings.templatetags.admin_static,satchmo_utils。 thumbnail.templatetags.admin_static,satchmo_store.contact.templatetags.admin_static,tax.templatetags.admin_static,product.templatetags.admin_static,payment.templatetags.admin_static,satchmo_utils.templatetags.admin_static,app_plugins.templatetags.admin_static

我不知道为什么它说它应该默认存在。

谢谢

【问题讨论】:

    标签: django satchmo


    【解决方案1】:

    您可能正在使用 Django 1.5,它已放弃对 satchmo 尝试查找的 admin_static 标记的支持。降级到1.4.5. 应该没问题。

    【讨论】:

      【解决方案2】:

      根据源文档,自 2012 年 7 月以来,Satchmo 目前需要 Django 1.4+。 (现在修复了主页上过时的要求。)

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2017-02-01
        • 2011-07-08
        • 2011-03-04
        • 1970-01-01
        • 2021-09-04
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多