Advertisement

django admin源码代码解析(学习记录)

阅读量:

程序

django admin 渲染视图流程

部分内容

复制代码
    {% extends "admin/base_site.html" %}
    {% load i18n admin_urls ralph_tags admin_static admin_list foundation_alert sitetree cache %}
    
    <!--@@@继承base_site.html -> block extrastyle-->
    {% block extrastyle %}
      {{ block.super }}
      {% if not actions_on_top and not actions_on_bottom %}
    <style>
      #changelist table thead th:first-child {width: inherit}
    </style>
      {% endif %}
    {% endblock %}
    
    <!--@@@继承父模板 block bodyclass 并且

全部评论 (0)

还没有任何评论哟~