django-adminlte-ui 1.2.0 发布, 基于adminlte的Django后台模板

栏目: 软件资讯 · 发布时间: 4年前

内容简介:django-adminlte-ui 1.2.0 发布啦 1.2.0 该版本新增了对站点标题,站点标头,站点LOGO及欢迎标语的自定义,通过models中的options及templatetags实现。并在options表的基础上提供general_option页面进行快速设置,...

django-adminlte-ui 1.2.0 发布啦

1.2.0

该版本新增了对站点标题,站点标头,站点LOGO及欢迎标语的自定义,通过models中的options及templatetags实现。并在options表的基础上提供general_option页面进行快速设置,同时只需要在templates页面中加载adminlte_options这个templatetags即可使用options表中的自定义配置。

examples:

# adminlte/general_option.html

{% load adminlte_options %}

# here my option_name is site_title, you can custom yourself.
{% get_adminlte_option 'site_title' as adminlte_site_title %}
{% if adminlte_site_title.valid %}
{{ adminlte_site_title.site_title }}
{% else %}
{{ site_title|default:_('Django site admin') }}
{% endif %}

django-adminlte-ui 1.2.0 发布, 基于adminlte的Django后台模板

更新日志

  1. add models with options;
  2. add general_option.html to manager general option;
  3. setup app label to django_admin_settings;
  4. register and add general_option into menu;
  5. add docs.

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Open Data Structures

Open Data Structures

Pat Morin / AU Press / 2013-6 / USD 29.66

Offered as an introduction to the field of data structures and algorithms, Open Data Structures covers the implementation and analysis of data structures for sequences (lists), queues, priority queues......一起来看看 《Open Data Structures》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具