【问题标题】:cant run Django-Responsive2无法运行 Django-Responsive2
【发布时间】:2020-08-10 15:24:05
【问题描述】:

关注django-responsive2 documentation后,

我的 html 代码是:

 {% if device.is_xsmall or device.is_small %}

            <div class="col-sm">
                <img src="images/myimage_sm.jpg" alt="Descriptive alt tag" />
            </div>

{% elif device.is_medium %}

我收到此错误:

文件“C:\Users\Adminstrator\Desktop\project\project\settings.py”,第 147 行,在 'verbose_name': ('小屏幕'), NameError: 名称“”未定义

请提前

【问题讨论】:

    标签: javascript python django web responsive


    【解决方案1】:

    您是否运行过迁移?

    除此之外,您需要提供更多代码,而不仅仅是错误。

    【讨论】:

    • 你自己试试吧
    猜你喜欢
    • 2019-01-14
    • 2012-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-06
    • 2017-10-19
    • 2018-02-11
    相关资源
    最近更新 更多