首页 > 解决方案 > 它没有得到正确的信息

问题描述

index.html 没有显示任何错误,但没有显示它应该显示的信息。

使用标签时没有问题,但尝试从网站获取信息时,它根本不显示。

                <div class="box">
                    <article class="media">
                        <div class="media-left">
                            <figure class="image is-50x50">
                                <img src="http://openweathermap.org/img/w/{{ weather.icon }}.png" alt="Image">
                            </figure>
                        </div>
                        <div class="media-content">
                            <div class="content">
                                <p>
                                    <span class="title">{{ weather.city }}</span>
                                    <br>
                                    <span class="subtitle">{{ weather.temperature }}°F </span>
                                    <br> {{ weather.description }}
                                </p>
                            </div>
                        </div>
                    </article>

没有错误,只是图片没有显示

标签: htmldjango

解决方案


推荐阅读