<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                >[success] # 增加一個有情鏈接 ![](https://box.kancloud.cn/f48f326f82d39c11864bf21eb94dd2cf_1033x223.png) >[danger] ##### 配置url ~~~ url(r'^links/$', LinkView.as_view(), name="links"), ~~~ >[danger] ##### 在config 模塊下編寫views ~~~ queryset 可以直接編寫 這個屬性來規定返回的查詢值 ~~~ ~~~ from django.shortcuts import render from django.views.generic import ListView from .models import Link from blong.views import CommonMixin # Create your views here. class LinkView(CommonMixin, ListView): queryset = Link.objects.filter(status=1) # 注釋這里 template_name = 'config/links.html' context_object_name = 'links' # 在頁面顯示的變量 context 默認是 object_list ~~~ >[danger] ##### 在templates /config 文件下編寫link.html ~~~ 1./favicon.ico網站圖片 ~~~ ~~~ {% extends "blog/base.html" %} {% block content %} <table class="table"> <thead> <tr> <th scope="col">#</th> <th scope="col">名稱</th> <th scope="col">網址</th> </tr> </thead> <tbody> {% for link in links %} <tr> <th scope="row">{{ forloop.counter }}</th> <td>{{ link.title }}</td> <td><a href="{{ link.href }}" target="_blank"><img height="20px" src="{{ link.href }}/favicon.ico"></a></td> </tr> {% endfor %} </tbody> </table> {% endblock %} ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看